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

creating LIKE using field from DB

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I have a query that works in SQL
Code:
SELECT Subject,Notes,CallId FROM Calls WHERE Notes NOT LIKE Subject + '%'

Only when I try this in access it wont run
Code:
SELECT Subject,Notes,CallId FROM Calls WHERE Notes NOT LIKE (Subject + '*')

What's the correct syntax for that SQL query in access ?

Thanks,
1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

MIME::Lite TLS Email Encryption - Perl v0.02 beta
 
[bugeyed] must have made a typo as it now works, sorry to have bothered you.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

MIME::Lite TLS Email Encryption - Perl v0.02 beta
 
1DMF,
You have asked enough questions here that you should understand that "wont run" is never adequate.

It's good to hear that it is now working but please practice better posting.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top