Paramter in UNION query

D

doodle

access 97, SQL 2005

I am having issues with a UNION query. The query is prompting the user
for the apramter twice. I know if I create a form where the user can
type the parameter, I can reference the value from the form in the
query, but I am really not crazy about the idea of having to create an
entire form just to get this query to run.

Is there another way to have this prompt the user only once?

Here is my query:

SELECT dbo_tblJL_Main.MachineSN
FROM dbo_tblJL_Main
WHERE (((dbo_tblJL_Main.Customer) Like "*" & [Enter Customer Name:]&
"*"));


UNION SELECT tblTD_Main.MachineSN
FROM tblTD_Main
WHERE (((tblTD_Main.Customer) Like "*" & [Enter Customer Name:]&
"*"));

thanks!

-a
 

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

Similar Threads

Union query 5
Union Query 4
Union Queries 4
Multiple parameters in a union query 14
UNION Query Parameters 1
Union Query Where Clause 0
UNION query question 7
uNION QUERY 6

Top