What is the easiest way to combine 5 tables (table 1, table2, table 3 ...) that are linked into access from Excel into one table in access.
All 5 tables have the following fields
DateEnter (Date/Time)
Location (text)
First Name (text)
Last Name (text)
Used (Number)
Total (Number)
Code:
INSERT INTO [ALLTABLE] ([DATEENTER],[LOCATION],[FIRST NAME], [LAST NAME],[USED],[TOTAL])SELECT [TABLE 1].[DATEENTER],[TABLE 1].[LOCATION],[TABLE 1].[FIRST NAME],[TABLE 1].[LAST NAME],[TABLE 1].[USED],[TABLE 1].[TOTAL],
[TABLE 2].[DATEENTER],[TABLE 2].[LOCATION],[TABLE 2].[FIRST NAME],[TABLE 2].[LAST NAME],[TABLE 2].[USED],[TABLE 2].[TOTAL]
FROM [TABLE 1], [TABLE 2]
WHERE ((([TABLE 1].[LOCATION])="NJ") AND (([TABLE 2].[LOCATION])="NJ"));
I get the error (Duplicate output destination 'DateEnter'
How would I use a Union Query if I am not appending the data. I just want to make the table each time I run the macro in Access