B
Brad P
Using the following code in a Timer event that runs every 2 minutes.
Set db = CurrentDb
Set qryAlarm = db.QueryDefs("qry_AlarmMonitor")
qryAlarm.Parameters(0) = Forms![frm_StaffInitials]![Initials]
Set rstAlarm = qryAlarm.OpenRecordset(dbOpenDynaset)
The 2nd line pauses for a few seconds, causing the whole application to
freeze. But any key or mouse sequences carried out during this 2-3 second
freeze resumes once the timer event is complete. This pause can be very
annoying. The underlying table has 50,000+ records. However, if the table
has 5-8000 records, there is no noticeable pause. Any suggestions?
Thanks
Set db = CurrentDb
Set qryAlarm = db.QueryDefs("qry_AlarmMonitor")
qryAlarm.Parameters(0) = Forms![frm_StaffInitials]![Initials]
Set rstAlarm = qryAlarm.OpenRecordset(dbOpenDynaset)
The 2nd line pauses for a few seconds, causing the whole application to
freeze. But any key or mouse sequences carried out during this 2-3 second
freeze resumes once the timer event is complete. This pause can be very
annoying. The underlying table has 50,000+ records. However, if the table
has 5-8000 records, there is no noticeable pause. Any suggestions?
Thanks