G
Gus
Hello,
Thanks for your time.
The code below triggers a Yes No Response when users click on Yes the code
works, but when the click no, nothing happens. I am not sure why. Could
anyone please help out? Thanks. I want the user to go to a different fomr
when the click no (Agreement Search and Check Out).
Private Sub Form_Close()
Dim LResponse As Integer
LResponse = MsgBox("Do you wish to continue?", vbYesNo, "Continue")
If LResponse = vbYes Then
Docmd.OpenForm "New_Agreement_Number_Log_Form"
Else
Docmd.OpenForm "Agreement Search and Check Out"
End If
End Sub
Thanks.
Thanks for your time.
The code below triggers a Yes No Response when users click on Yes the code
works, but when the click no, nothing happens. I am not sure why. Could
anyone please help out? Thanks. I want the user to go to a different fomr
when the click no (Agreement Search and Check Out).
Private Sub Form_Close()
Dim LResponse As Integer
LResponse = MsgBox("Do you wish to continue?", vbYesNo, "Continue")
If LResponse = vbYes Then
Docmd.OpenForm "New_Agreement_Number_Log_Form"
Else
Docmd.OpenForm "Agreement Search and Check Out"
End If
End Sub
Thanks.