Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Results from 2 Queries - How?

Status
Not open for further replies.

net123

Programmer
Oct 18, 2002
167
US
Experts:

How can I create a simple report in MS Access 2000 in which it only has two values.

For example, I have two separate tables with user submissions, Entries1 and Entries2. I can easily create 1 query from 1 table and then by adding [Type beginning date] & " and " & [Type ending date] in the constraint area of the query, but don't know how to incorporate this into the report with 2 queries.

Is there a line of code to display just the count from query1 and query2.

For example:

===========================
Report:

Total between Date1 and Date2

E1 E2

===========================

Where E1 is something like: '
SELECT count(EntryID1)
FROM table1
where date ...

Please help.


 

I'm sure you will get the gist from this:

SELECT count(EntryID1)
FROM table1
where date ...
union
select count (entryID2)
from table2
where date ...

John
 
But how can incorporate user input into your select statement?

where date is [Enter date1 and date2]???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top