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

Criteria with SQL LIKE Problem.

Status
Not open for further replies.

Talonjpc

Programmer
Jul 29, 2002
21
US
I know the SQL LIKE command allows someone to search for a value that matches part of the criteria. However, how do you use the LIKE command with User entered criteria. I want the user to enter a server's network name, so in the criteria I put Like [Network Name] However the []means something different with the LIKE command, I know that much, so Database will not prompt the user for the Network Name
So my question is, how can I use this command with user based criteria.

Thanks,
Vinay
 
try writing it the same way but put a "p" in front of network name. Like this:

Like [pNetworkName]

the user should now be promted for the network name.

-Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top