lookforsmt
Registered User.
- Local time
- Today, 14:18
- Joined
- Dec 26, 2011
- Messages
- 672
HI! arnelgp
Thanks for the detailed code and explanation.
I am trying to understand the code and replying to answer your questions.
There is AutoNumber field as DateId
Here i am using append query to add field "Entry_Date" from table "26_Master" to table "tbl_Entry_Date" mentioned as below.
Here do i need to create this in append query as well or use the above query.
Thanks for the detailed code and explanation.
I am trying to understand the code and replying to answer your questions.
Yes i am adding only date field from 26_Master to tbl_Entry_Date.' are you adding records to tbl_Entry_Date?
' if the above is true, does it has an
' AutoNumber field?
There is AutoNumber field as DateId
Dim rsPrevIDs As DAO.Recordset
set rsPrevIDs = DbEngine(0)(0).OpenRecordset("SELECT ID FROM tbl_Entry_Date", dbOpenSnapshot)
Here i am using append query to add field "Entry_Date" from table "26_Master" to table "tbl_Entry_Date" mentioned as below.
Code:
INSERT INTO tbl_Entry_Date ( Entry_Date )
SELECT DISTINCTROW [26_Master].Entry_Date
FROM 26_Master;
''
' after executing your Query, create another
' recordset to compare the PreviousIDs:
Dim rsNewIDs As DAO.Recordset
set rsNewIDs = DbEngine(0)(0).OpenRecordset("SELECT ID, Entry_Date FROM tbl_Entry_Date", dbOpenSnapshot)
Here do i need to create this in append query as well or use the above query.