Please Help! Error 2342

  • Thread starter Thread starter DBAguy
  • Start date Start date
D

DBAguy

Guest
In a Form that I've built, the following code produces the following error:

DoCmd.RunSQL "SELECT Email.[User ID] FROM ;"

>>>>
Run-time error '2342':

A RunSQL action requires an argument consisting of an SQL statement.
<<<<

The SQL statement appears valid. What am I doing wrong? Any help would greatly be appreciated. :)
 
Your SQL isn't an action query. I believe that DoCmd.RunSQL requries a a table being created, updated, appended, etc. - action.

Use your SQL in a DAO or ADO recordset to get the User ID address.
 

Users who are viewing this thread

Back
Top Bottom