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

SQL Statement in VB

Status
Not open for further replies.

mans

Programmer
Mar 18, 2000
136
AU
Hello,

I am using VB6 with Access2000. I am attempting to use the code below in VB to find the first person with a last name O’Malley (Assume Combo14 contains the name O'Malley). Because of the single quote in the LastName the statement fails and shuts down the program. Can someone please let me know how I can change the code below to enable it to locate names with single quotes inside them like O’Malley.

rt.FindFirst "total!LastName = '" & Combo14 & "'"

Thank You
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top