N
nbohana
I am trying run this code. It ask me to supply the parameter? Well the
parameter is being passed by 'estselector', and is gotten from a dropdown
list. I check 'estselector' and it has the correct value. What am I doing
wrong. Please help thank you.
Private Sub Preview_Click()
On Error GoTo Err_Preview_Click
Dim stDocName As String
Dim strFilter As String
strFilter = "[error-tracker].[estimator] = " & estselector
If IsNull(estselector) Then
MsgBox " *** You must Select a Bid. *** "
Else
DoCmd.OpenReport "ErrorEvalReport", acViewPreview, , strFilter
End If
Exit_Preview_Click:
Exit Sub
parameter is being passed by 'estselector', and is gotten from a dropdown
list. I check 'estselector' and it has the correct value. What am I doing
wrong. Please help thank you.
Private Sub Preview_Click()
On Error GoTo Err_Preview_Click
Dim stDocName As String
Dim strFilter As String
strFilter = "[error-tracker].[estimator] = " & estselector
If IsNull(estselector) Then
MsgBox " *** You must Select a Bid. *** "
Else
DoCmd.OpenReport "ErrorEvalReport", acViewPreview, , strFilter
End If
Exit_Preview_Click:
Exit Sub