Link to home
Start Free TrialLog in
Avatar of Jimmy_inc
Jimmy_incFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Trying to specify a range with sql string and vba variables

Hi,
instead of just
"Select * From invoices Where [Invoice Date] >= #" & myval & "#"
I would like:
"Select * From invoices Where [Invoice Date] >= #" & myval & "#" & <= myval2 and ... , is there some command program that could give me the correct syntax for any sql string - if not could anyone give me the correct syntax for the above.
ASKER CERTIFIED SOLUTION
Avatar of nutsch
nutsch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jimmy_inc

ASKER

Thanks worked perfectly.

 Im going to post another question for you guys