I'm using this code to either ask for user information if not provided OR save the user info if available BUT when i click on my command button save, i get this message when no info is provided,"New User has been successfully added"
Code:
Private Sub cmdSave_Click() If UserId = "" Or Password = "" Or UserName = "" Or AuthorityLevel = "" Then MsgBox "Complete User Information NOT Provided" Else DoCmd.Save DoCmd.GoToRecord , , acNewRec MsgBox "New User has been successfully added" End If End sub
Comment