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?
 
Back
Top