Hello, I'm using the following code to open a form and pass a value from the existing form.
When my code runs I get the following error:
The openform dialog was canceled
What am I doing wrong?
Private Sub Email_DMR_Click()
On Error GoTo Err_btnEmailReportNew_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Email DMR"
DoCmd.OpenForm stDocName, acNormal, , , , , SUPPLIER.Value