DoCmd.RunSQL sql

J

JGR

Thanks for the help!
I changed the code to

sql = "Update tblBBPNo" & " Set tblBBPNo.ysnAvaliable =
True;" & _
" Where intBBP_No_Id = '" & Me.intBBP_No_Id.OldValue & "'"
DoCmd.RunSQL sql

This changed the Error to:
3142 Characters found after end of SQL statment.

Is this a typo or because it is part of an IF statment and
there is another "sql=" below the DoCmd.RunSQL sql?
 
T

Ted Allen

The semicolon notes the end of a query. You have a
semicolon before the WHERE clause, which I think is
generating the error.

HTH, Ted Allen
 

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

Similar Threads


Top