How to evaluate if a Field exist on a Recordset?

Hi all!

How can I evaluate if a Field exist on a Recordset?

So, I have a table with several values, included ID field. I need to parse if ex. ID = 6789 then Validator= true.

And then when Validator becames true, then record a databaserecord into an other table.

Thanks

if a FIELD exists?
or if a specific field is a particular value?

for the first, how are you crafting the SQL that you don’t know the fields you are reading
for the second, add a WHERE clause