I have a hand-me-down Access database which I am trying to get some data out of.
I have a table called issues with a field called owner. The owner field may contain a single name, or it may contain a comma-seperated list of names.
I have a table called users with a field called name. I am needing to join the two tables up based on the first or only name in the issues.owner field matched to the users.name field.
Whenever I try using inStr in the WHERE clause, access throws an invalid procedure error. Anybody got any suggestions?
This does not seem to work with Access and even if it did, it would only work for records with a list of users in the issues table, not just a sinlge enty ....
SELECT *
FROM issues, users
WHERE left(issues.owner, inStr(issues.owner, ',')-1) = users.name
Thanks
-- Jeff
I have a table called issues with a field called owner. The owner field may contain a single name, or it may contain a comma-seperated list of names.
I have a table called users with a field called name. I am needing to join the two tables up based on the first or only name in the issues.owner field matched to the users.name field.
Whenever I try using inStr in the WHERE clause, access throws an invalid procedure error. Anybody got any suggestions?
This does not seem to work with Access and even if it did, it would only work for records with a list of users in the issues table, not just a sinlge enty ....
SELECT *
FROM issues, users
WHERE left(issues.owner, inStr(issues.owner, ',')-1) = users.name
Thanks
-- Jeff