I have an Access report that opens in acPreview after a form command button is clicked. I need to somehow set a timer that runs a subroutine 5 seconds after the report is displayed on the screen. The subroutine is below. I cannot set this timer on the click event of the command button because doing so removes focus from the report and the ActiveReport argument fails.
Dim CurrentReport As Report
Set CurrentReport = Screen.ActiveReport
Msgbox "The report name is " & CurrentReport
How can I successfully run this sub 5 seconds after the report is displayed? Thanks.
--
Mike
Dim CurrentReport As Report
Set CurrentReport = Screen.ActiveReport
Msgbox "The report name is " & CurrentReport
How can I successfully run this sub 5 seconds after the report is displayed? Thanks.
--
Mike