My SQL so far:
s1_quotes is a table with a "description" field which is memo format as it contains too many characters for a text.
Services_Desktop is a query based on a services table which filters the services to just get desktop ones. This query has a single field - "service_id".
The aim is to return a list of records in the s1_quotes table which contain any desktop service_id in the description field.
The above query/subquery is the closest I can get to date.
When I run the query it does output a list of results (which seem to match the criteria) but when it finishes outputting it returns this error message:
"At most one record can be returned by this subquery"
When I click OK all the records/fields are replaced with #Name?
I have checked the Services_Desktop query and there are NO duplicate service_id's as I know this can cause this error.
I don't think I can use a JOIN query as it involves a Memo field ... so this method seems to be the closest I've got so far. Open to suggestions!
Thanks in advance.
Code:
SELECT s1_quotes.*
FROM s1_quotes
WHERE (SELECT [Services_Desktop]![service_id]
FROM Services_Desktop
WHERE [s1_quotes]![description] LIKE "*" & [Services_Desktop]![service_id] & "*");
s1_quotes is a table with a "description" field which is memo format as it contains too many characters for a text.
Services_Desktop is a query based on a services table which filters the services to just get desktop ones. This query has a single field - "service_id".
The aim is to return a list of records in the s1_quotes table which contain any desktop service_id in the description field.
The above query/subquery is the closest I can get to date.
When I run the query it does output a list of results (which seem to match the criteria) but when it finishes outputting it returns this error message:
"At most one record can be returned by this subquery"
When I click OK all the records/fields are replaced with #Name?
I have checked the Services_Desktop query and there are NO duplicate service_id's as I know this can cause this error.
I don't think I can use a JOIN query as it involves a Memo field ... so this method seems to be the closest I've got so far. Open to suggestions!
Thanks in advance.