Error 3075: missing operator

I

Infected04

I keep getting the above error on this code

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

Infected04

sorry
the full error is syntax error (missing operator)

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

Marshall Barton

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.
 

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

Top