I am using Access 97. I would like to be able to pause between forms.
For example, I have 2 reminders I would like displayed separately, one
at a time. Here is part of the code I am using.
If Not rstReminders.EOF Then
rstReminders.MoveFirst
While Not rstReminders.EOF
strReminder = rstReminders!Reminder
strEventCaption = rstReminders!EventCaption
DoCmd.OpenForm "frmMessage"
Forms!frmMessage.Caption = strEventCaption
Forms!frmMessage!txtReminder = strReminder
rstReminders.MoveNext
Wend
End If
Making the form a Dialog form by adding acDialog does not work because
then I cannot set the Message Caption or the reminder.
I also tried adding DoEvents and Wait (found on Microsoft's site) to no
avail. I know that I can insert a MsgBox statement to halt the code
until the user clicks on okay but I want it to halt and have the user
click on the OK button of the frmMessage.
Does anyone have any suggestions? Thank you,
Deborah