S
Steve
Sorry for the stupid question, but I am loosing altitude on this.
I have created a message bx yes/no, the yes part works because it just
continues to run the code, but when "No" is clicked I want it to close and
not continue.
Here is the code, any help would be greatly appreciated.
Thank you in advance
Private Sub Command45_Click()
On Error GoTo Command45_Click_Err
RetValue = MsgBox(" Are You Creating a FY 07 SOW?", vbYesNo)
DoCmd.OpenForm "FY2001", acNormal, "", "", acEdit, acNormal
DoCmd.maximize
Command45_Click_Exit:
Exit Sub
Command45_Click_Err:
MsgBox Error$
Resume Command45_Click_Exit
End Sub
I have created a message bx yes/no, the yes part works because it just
continues to run the code, but when "No" is clicked I want it to close and
not continue.
Here is the code, any help would be greatly appreciated.
Thank you in advance
Private Sub Command45_Click()
On Error GoTo Command45_Click_Err
RetValue = MsgBox(" Are You Creating a FY 07 SOW?", vbYesNo)
DoCmd.OpenForm "FY2001", acNormal, "", "", acEdit, acNormal
DoCmd.maximize
Command45_Click_Exit:
Exit Sub
Command45_Click_Err:
MsgBox Error$
Resume Command45_Click_Exit
End Sub