Using InStr Access 2007

Joined
Apr 20, 2012
Messages
1
Reaction score
0
Here is the SQL Code
SELECT ev.evDate, evDet.bandID, ev.LocID, ev.cltID, ev.[more info], ev.Type
FROM locInfo INNER JOIN (bdInfo RIGHT JOIN (ev INNER JOIN evDet ON ev.evID = evDet.evID) ON bdInfo.bdnfoID = evDet.bandID) ON locInfo.locInfoID = ev.LocID
WHERE (((InStr([Enter Multi-Bands sep by comma],[bdinfo]![name]))>0 Or (InStr([Enter Multi-Bands sep by comma],[bdinfo]![name])) Is Null))
ORDER BY ev.evDate, evDet.bandID, ev.Type;

Query works great with one exception. There is a Band named "Electric Avenue" and a Band Named "Avenue". Anytime "Electric Avenue" is used - results for "Avenue" show up.

However, If "Avenue" is used - results for "Electric Avenue" do not show up. (the desired result)

Is there a way to set the InStr to be an exact match?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top