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

concatinating an SQL statement

Status
Not open for further replies.

fergman

Technical User
Oct 19, 2000
91
US
Hello, I'm attempting to concatinate an sql statement that looks like this:
SQL = "SELECT * FROM [companyList] WHERE [customers] = ['"& newCompany & "']"

Basically the newCompany variable needs to contain puncuation, such as ' and possibly others. newCompany might be a person such as john's store instead of the store name. However, for the life of me I haven't been able to get it to work. what am I doing wrong?
 
thread333-578277 should get you there.

_____________________________________________________________________
onpnt2.gif
[sub]
Hakuna matata!!
[/sub]
 
hmmm, Is that the only option, I'm not familar with that type of function. And I don't have access to the server, it's a shared host.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top