I have 3 query's with the syntax below:
Query1
Code:
SELECT COUNT(ID) As CountOfID
FROM table1
WHERE saleDate BETWEEN [forms]![form1]![begin] AND [forms]![form1]![end]
Query2
Code:
SELECT COUNT(ID) AS COUNTOFID
FROM table2
WHERE saleDate BETWEEN [forms]![form1]![begin] AND [forms]![form1]![end]
Query3
Code:
SELECT [table1].[CountOfID]+[table2].[CountOfID]
FROM table1, table2
I want to run query3 from the push button on a form, and it display accurate data, but when I run query 3 it displays '0' when that is incorrect. How should I set this up?