projecttoday
Registered User.
- Local time
- Today, 06:43
- Joined
- Jan 5, 2011
- Messages
- 51
I have 2 queries scheduled through Windows to run early in the morning. The first one deletes the records from a table and the second one (a pass-through) puts records into the table from another system. I need a way to confirm that this ran successfully. The problem is the table date does not appear to get updated when the query is run by the scheduler. So
gives the wrong date. I could make a table and store the update date in it but I was wondering if I'm doing something wrong here or if there's any way to avoid that.
Code:
Dim LastUpdated as Date
LastUpdated = CurrentDb.TableDefs("tblCancel_Report_30_Days_Atlantic").Properties("Lastupdated")
If DateValue(Me.txtRunDate) <> DateValue(LastUpdated) Then
' send message to user
End If
gives the wrong date. I could make a table and store the update date in it but I was wondering if I'm doing something wrong here or if there's any way to avoid that.