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

Access, SQL, and apostrophes

Status
Not open for further replies.

thatswimmer

Programmer
Aug 13, 2001
3
0
0
US
i have set up a javascript function to loop through form elements and replace (')'s with ('')'s, but are there any other special SQL characters that i need to be careful of when putting together queries from variables? Also, is there a way to do this in SQL instead of in javascript??

thanks
 
You've gotta break apart your SQL statement using the & character.

"Select * FROM yourdata Where Yourfield = " & yourvariable & "rest of SQL statement"

Also, * is % in SQL statements with ASP pages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top