C
Curtis
I am using the below coding and can not figure out why the "Else" DoCmd will
not work. Debug shows no errors yet if "NO" is clicked in the message box the
DoCmd.Close fails to work. Any idea why?
Function Another_Record()
MSGBOX "Do you wish to do another LRU update?", vbYesNo, "LRU UPDATE"
If vbYes Then
DoCmd.GoToControl "Serial Number"
Else
DoCmd.Close acForm, "EDIT CDS LRU ASSET"
End If
End Function
not work. Debug shows no errors yet if "NO" is clicked in the message box the
DoCmd.Close fails to work. Any idea why?
Function Another_Record()
MSGBOX "Do you wish to do another LRU update?", vbYesNo, "LRU UPDATE"
If vbYes Then
DoCmd.GoToControl "Serial Number"
Else
DoCmd.Close acForm, "EDIT CDS LRU ASSET"
End If
End Function