Hello all,
I am trying to code a message box to display the record number of the record the user just added as a confirmation number. The user clicks on the message box to add the record and close out of the form. How do I retrieve the record number just added and display it?
Please e-mail me at: [email removed]
Here is the code for the button:
Thank you for your help!!!
I am trying to code a message box to display the record number of the record the user just added as a confirmation number. The user clicks on the message box to add the record and close out of the form. How do I retrieve the record number just added and display it?
Please e-mail me at: [email removed]
Here is the code for the button:
Code:
Private Sub Add_Nomination_Click()
On Error GoTo Add_Nomination_Click_Err
Beep
MsgBox "Your nomination has been submitted. Thank you!", vbInformation, "Record Added"
DoCmd.Close acForm, "Nomination Form"
Add_Nomination_Click_Exit:
Exit Sub
Add_Nomination_Click_Err:
MsgBox Error$
Resume Add_Nomination_Click_Exit
End Sub
Thank you for your help!!!
Comment