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

sql wildcard in VB

Status
Not open for further replies.

athos07

Programmer
Aug 1, 2002
19
AU
hi gud am,

im creating a report using VB, I have a parameter.

sample:

parameter = inputbox ("ENTER LASTNAME.")

SQLparam = "SELECT lastname, firstname FROM table1 WHERE lastname LIKE '*"" & parameter & "*'"

ive tried this but there's an error ples help me. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top