• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 66
  • Last Modified:

VB Access SQL question

What is the correct syntax for this:

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

"ENGLISH" is just a constant value.
0
Tony Crisafi
Asked:
Tony Crisafi
  • 2
1 Solution
 
COACHMAN99Commented:
try WHERE [Language] = 'ENGLISH' then the double quotes
0
 
COACHMAN99Commented:
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
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now