View Single Post
Old 08-03-2011, 05:27 AM   #2
JANR
Newly Registered User
 
Join Date: Jan 2009
Location: Norway
Posts: 1,623
Thanks: 7
Thanked 167 Times in 160 Posts
JANR has a spectacular aura about JANR has a spectacular aura about
Re: compile error: expected: expression

Code:
Dim txtAcc As String

txtAcc = "SELECT Employees.Access_Level FROM Employees WHERE Employee_ID = XXXXXXXX"
Use quotes around stringexpression

JR
JANR is offline   Reply With Quote