M
mike
Hi All
I need to write a query that checks the records in my database to see how
log ago a specific event too place. Depending on the length of time between
now and the date recorded in the database I need to trigger another query or
do nothing.
I have a table of events with the last date recorded. I have a query that
looks for the date difference between now and the previous recorded event.
I am not sure how to get the date difference as an integer from the query.
At the moment I am doing an event procedure:-
Dim strWeekDate As Integer
strWeekDate = Qry_Weekly_set
If strWeekDate < 6 Then
MsgBox "Do not trigger event"
Else
MsgBox "This event will trigger another query"
End If
But this does not work can someone point me in the right direction please?
Regards and TIA
Mike
I need to write a query that checks the records in my database to see how
log ago a specific event too place. Depending on the length of time between
now and the date recorded in the database I need to trigger another query or
do nothing.
I have a table of events with the last date recorded. I have a query that
looks for the date difference between now and the previous recorded event.
I am not sure how to get the date difference as an integer from the query.
At the moment I am doing an event procedure:-
Dim strWeekDate As Integer
strWeekDate = Qry_Weekly_set
If strWeekDate < 6 Then
MsgBox "Do not trigger event"
Else
MsgBox "This event will trigger another query"
End If
But this does not work can someone point me in the right direction please?
Regards and TIA
Mike