merlynsdad
Programmer
I've downloaded a bunch of time & date data from Oracle to Access, as dates and times using TimeSerial and DateSerial. Now I need to specify that if the time is between midnight and 4AM, the date should be the day before. I don't think I can do that in the SQL statement, so I'm using an IF...THEN structure as follows:
If tblTemp_Event.time_stamp > #12:00:00 AM# And tblTemp_Event.time_stamp <= #4:00:00 AM# Then
tblTemp_Event.date_stamp = (tblTemp_Event.date_stamp - 1)
End If
I'm getting a variable not defined error on tblTemp_Event, which is confusing me more than I'm already confused. Where have I gone wrong?
If the square peg won't fit in the round hole, sand off the corners.
If tblTemp_Event.time_stamp > #12:00:00 AM# And tblTemp_Event.time_stamp <= #4:00:00 AM# Then
tblTemp_Event.date_stamp = (tblTemp_Event.date_stamp - 1)
End If
I'm getting a variable not defined error on tblTemp_Event, which is confusing me more than I'm already confused. Where have I gone wrong?
If the square peg won't fit in the round hole, sand off the corners.