I'm trying to open a specific recordset in a print preview but Access can't find my variable.
I'm getting a Runtime Error 2465
. The variable I want to Access is in a public Sub.
Public Sub PrintPreview_Click()
DoCmd.OpenForm "Form1", acViewPreview, , "Number1 = " & Me!Nummer2
End Sub