Error with Recordset.FindPrevious

  • Thread starter Thread starter bg_ie
  • Start date Start date
B

bg_ie

Hi Folks,

The following line is giving me and error -

Me.Recordset.FindPrevious "New-Lab = True"

due to the presence of the '-'.

Me.Recordset.FindPrevious "OurLab = True"

works just fine.

So, how should I escape the '-'? I could rename the field to NewLab
but I'm worried that this field might be explicitly used somewhere
else in the database (which I haven't writen).

Thanks for your help,

Barry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top