Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 68
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

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