lestermadoc
Programmer
I'm having trouble figuring out how to compare a record's date with the current date on a timer event. I want to perform this on every record in the database where a date field is not empty. I know how to use the datediff function, but not in an update query. Here is my code that doesn't work:
threshold = 24
rst.Open "update cases SET cases.flag = 0 WHERE" & DateDiff("h", rst!datein, Now) > threshold, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
No one seems to be able to help me!! any help would be greatly appreciated.
threshold = 24
rst.Open "update cases SET cases.flag = 0 WHERE" & DateDiff("h", rst!datein, Now) > threshold, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
No one seems to be able to help me!! any help would be greatly appreciated.