Event procedure can't find field

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

I added a text box to a report and referenced it to a
field in the database. When I try to name the field in
the procedure, like:

If [field] = "Yes" Then ...

I get the following error when I try to run the report:

Run-time error '2465';
Microsoft Access can't find the field '|' referred to in
your expression.

Any help would be appreciated
Mike
 
Is this field bound to a control on the report? If this field in the
report's record source? If not, try the DLookUp function. If it is in the
report's record source but not bound to a control on the report, try adding
a hidden control bound to this field.
 
Back
Top