Hi,
What is the best code to use in order to save the record and quit the form? I have a main menu so i will save,quit this form and go to main form
I have this code:
Private Sub testingsaveok_Click()
If Me.Dirty Then
Me.Dirty = False
DoCmd.OpenForm "BorrowerSection", acNormal
DoCmd.Close acForm, "AddNewBorrower", acSaveNo
End If
End Sub
Is this the best way? My code actually gets a runtime error if i did not fill in one of the required fields in my form but other than that it saved the form if i entered all required information.
What is the best code to use in order to save the record and quit the form? I have a main menu so i will save,quit this form and go to main form
I have this code:
Private Sub testingsaveok_Click()
If Me.Dirty Then
Me.Dirty = False
DoCmd.OpenForm "BorrowerSection", acNormal
DoCmd.Close acForm, "AddNewBorrower", acSaveNo
End If
End Sub
Is this the best way? My code actually gets a runtime error if i did not fill in one of the required fields in my form but other than that it saved the form if i entered all required information.