help w/sql in macro

  • Thread starter Thread starter Daniel M
  • Start date Start date
D

Daniel M

I am trying to run a sql qry in a macro with the RUNSQL command.

I am trying to run a select command but it keeps failing. can anyone help?

SELECT serialnumber FROM devices WHERE ipaddress=ESN
 
You don't "Run" Select queries. Run is for Action queries, such as Append
and Update queries. What are you wanting to do?
 
RunSQL can only be used with action queries (append, update, etc.) and
data definition statements, not with SELECT queries.
 

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