Steve,
I seemed to have fixed the problem through coding all the
commands into the on-load of the form (see below).
Private Sub Form_Load()
If Me.Ind = "A" Then
MsgBox "Process Complete. Please Exit Screens."
Else
DoCmd.OpenReport "R_Monitoring", acViewPreview
DoCmd.SendObject acSendReport, "R_Monitoring",
acFormatRTF, [Reports]![R_Monitoring]!
[E_Mail], , , "Monitoring Report", "Test", False, False
DoCmd.Close acReport, "R_Monitoring", acSaveNo
DoCmd.Close acForm, "F_MMSAC2", acSaveNo
DoCmd.OpenQuery "Q_Val+1", acViewNormal, acEdit
DoCmd.OpenForm "F_MMSAC2", acNormal, , ,
acFormEdit, acWindowNormal, False
End If
End Sub
However, it would be useful to know if there is a way
around the "20" limit?
Thanks,