G
Geoff
Hi
I have 2 tables, one is the data download from online banking and the second
one is with filtered date.
From table 1 I want to insert date into table 2 only if the date is greater
than the date of data in table 1.
I wrote this query
INSERT INTO tblnationwideflex (transdate, payee,[in], out, balance)
SELECT tblNationwideImport.Field1,
tblNationwideImport.Field2,
tblNationwideImport.Field3,
tblNationwideImport.Field4,
tblNationwideImport.Field5
FROM tblNationwideImport
where Max(tblNationwideImport.Field1) > Max(tblnationwideflex.transdate);
but access will not allow aggregation in the where clause.
Any suggestions would be appreciated.
Thank you and merry Christmas
I have 2 tables, one is the data download from online banking and the second
one is with filtered date.
From table 1 I want to insert date into table 2 only if the date is greater
than the date of data in table 1.
I wrote this query
INSERT INTO tblnationwideflex (transdate, payee,[in], out, balance)
SELECT tblNationwideImport.Field1,
tblNationwideImport.Field2,
tblNationwideImport.Field3,
tblNationwideImport.Field4,
tblNationwideImport.Field5
FROM tblNationwideImport
where Max(tblNationwideImport.Field1) > Max(tblnationwideflex.transdate);
but access will not allow aggregation in the where clause.
Any suggestions would be appreciated.
Thank you and merry Christmas