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!

Problem with LIKE Function

Status
Not open for further replies.

txaccess

Technical User
Jul 21, 2004
91
US
I have recently started working in an Access Project environment and I am new to SQL. In plain old Access I have no problem with finding records that begin with "B" for example, but I just can't get this function working in Access Project. What is the correct syntax? I have tried building a stored procedure to act as a filter and used LIKE in the conditions column, e.g.

WHERE (cont_last LIKE N'B*')

But this returns zero records.
Any help apprecieted.

I haven't failed, I have just found 10,000 ways that it won't work!
 
The wildcard character is % in sql server.

Also, literals are denoted by single quotes not double quotes as in Access.

 
Thanks cmmrfrds that worked a treat!

I haven't failed, I have just found 10,000 ways that it won't work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top