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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About SQL statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a statement :
"rs.Open ("SELECT * FROM user WHERE [loginname] = '" & txtUserName.Text & "'"), cn, adOpenStatic, adLockOptimistic, _
adCmdText"

then it says :
"Syntax Error in FROM clause "

I don't know what's wrong it is
Pls give me some opinion
THX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top