Hi,
I have a rather unusual request; I need to check (in an A2K database) whether a given field exists in the report's recordset. I've noticed that this is actually really easy to do with forms:
dim rs as dao.recordset,fld as field
set rs=me.recordsetclone
for each fld in rs.fields
if fld.name=strFieldName then <field exists>
next fld
..but I need to do this with a report, and there doesn't seem to be anything comparable.
Help? Katie
I have a rather unusual request; I need to check (in an A2K database) whether a given field exists in the report's recordset. I've noticed that this is actually really easy to do with forms:
dim rs as dao.recordset,fld as field
set rs=me.recordsetclone
for each fld in rs.fields
if fld.name=strFieldName then <field exists>
next fld
..but I need to do this with a report, and there doesn't seem to be anything comparable.
Help? Katie