Error 3075: missing operator

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I keep getting the above error on this code

DoCmd.OpenForm "frmDealerLog", , , "IDLog = " & IDLog
 
sorry
the full error is syntax error (missing operator)

DoCmd.OpenForm "frmDealerLog", , , "IDLog =" & IDLog
 
Infected04 said:
I keep getting the above error on this code

DoCmd.OpenForm "frmDealerLog", , , "IDLog = " & IDLog


That seems to imply that there's something funky about the
value of IDLog. What kind of field is it, text, numeric or
date?

If it's text, then you should use:

"IDLog = """ & IDLog & """"

or an equivalent.
 
Back
Top