VB Access SQL question

Tony Crisafi
Tony Crisafi used Ask the Experts™
on
What is the correct syntax for this:

 Set rs_PG1 = CurrentDb.OpenRecordset("SELECT * FROM [ProductGroup] WHERE [Language] = "ENGLISH"")

"ENGLISH" is just a constant value.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
try WHERE [Language] = 'ENGLISH' then the double quotes
if English is defined elsewhere as a string constant or variable then
[Language] = '" & ENGLISH & "' then the double quotes
i.e. single double & ENGLISH & double single double

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial