Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL with Variable 1

Status
Not open for further replies.

cranebill

IS-IT--Management
Jan 4, 2002
1,113
US
I am getting an error saying that "SQL command not properly ended", this is my first attempt at VB so any help appreciated: here is my code:

Code:
SQL_Tasks = "select * from qa.status_report_final where name = " & User
 
Try...

SQL_Tasks = "select * from qa.status_report_final where name = '" & User &"'"

debug.print SQL_Tasks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top