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

select from statement

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
how would i formule an sql statement to

select all data from testtable where testcol is equal to strvariable

 
"SELECT * FROM Testable WHERE Testcol = '" & strVariable & "'"

Notice the single tick marks. You ONLY use them if the variable is a string.
David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top