putting query in vba

  • Thread starter Thread starter papa jonah
  • Start date Start date
P

papa jonah

Is there a way to put a query, either in SQL or some other format, into
a vba event so that I can add some "if...then" statements?
If so, what sort of syntax do I need to surround it with?
 
My question is this.
Can I take a sql query statement and insert it into code? I know that
on any sort of event such as "on focus" or "on click" I can run a
query. I want to have code run a query within certain parameters as
determined by if...then statements.

Does that make more sense?
 

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


Back
Top