Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

Paramter in UNION query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
doodle - 26 Mar 2007 20:48 GMT
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
doodle - 26 Mar 2007 21:02 GMT
fixed it. thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.