Also change
Code:
Dim CATSActivityRS As DAO.Recordset
Dim EEStartandEndRS As DAO.Recordset
---------------------------------------------------
You have declared
Code:
Dim ErrorFlag As Boolean
but in code you have
Code:
If Error_Flag = False Then
note the underscore...
--------------------------------------------------------------
Code:
If EEStartandEndRS![Max_End_Time_Adj] < CATSActivityRSRS![End Time] Then
Too many RS???
---------------------------------------------------------------
Do you have
Code:
Option Compare Database
Option Explicit
as the top two lines of EVERY Module? If not, you should!!
----------------------------------------------------------------
Delete this line
You did not open the dB, so you do not close it.
Code:
CATSActivityRS.Close
EEStartandEndRS.Close
CATSDailydb.Close 'delete
Set CATSActivityRS = Nothing 'ADD
Set EEStartandEndRS = Nothing 'ADD
Set CATSDailydb.Close = Nothing 'ADD
DoCmd.Hourglass False
MsgBox Err.Description
Exit Function