Hi all,
What I'm trying to do is feed data from a table that has data loaded via a macro from Excel. What I then need to do is to feed this data into a query as a parameter, but at the same time use wildcard characters.
The problem is when I use ClientName (which is the column from the table the data is loaded into) with wildcards, I don't get any data returned. Basically I want to use all of the data loaded into the ClientName column to see if it is contained anywhere in the Actor Name column of the Client Data table.
Is it even possible to do what I'm after? I know that you can use a form to feed in parameters, but can you use a table in this way? I post the SQL below:
Thanks in advance.
What I'm trying to do is feed data from a table that has data loaded via a macro from Excel. What I then need to do is to feed this data into a query as a parameter, but at the same time use wildcard characters.
The problem is when I use ClientName (which is the column from the table the data is loaded into) with wildcards, I don't get any data returned. Basically I want to use all of the data loaded into the ClientName column to see if it is contained anywhere in the Actor Name column of the Client Data table.
Is it even possible to do what I'm after? I know that you can use a form to feed in parameters, but can you use a table in this way? I post the SQL below:
Code:
SELECT [CLIENT DATA].[Actor Name], [CLIENT DATA].[Primary Account], [CLIENT DATA].[Processing Site], [CLIENT DATA].Office, [Tbl-NamesQuery].ClientName
FROM [Tbl-NamesQuery] INNER JOIN [CLIENT DATA] ON [Tbl-NamesQuery].ClientName = [CLIENT DATA].[Actor Name]
WHERE ((([CLIENT DATA].[Actor Name]) Like "*" & [ClientName] & "*"));