C
cboisseau via AccessMonster.com
This appears to be easy for me, but for some reason I can't get my head
around it.
I have a find button that I would like to give me the results for all titles
under that publisher code.
What is wrong with this?
Private Sub Command49_Click()
FindPubCode
End Sub
Private Function FindPubCode() As String
On Error GoTo Err_commandmsgbox
Dim ENTER_PUBCODE As String
Dim ERRORPARAMETER As String
ENTER_PUBCODE = InputBox("PLEASE ENTER THE PUBCODE")
Me.FilterOn = False
Me.Filter = pubcode
Me.FilterOn = True
ERRORPARAMETER = pubcode
FindPubCode = True
Exit Function
Err_commandmsgbox:
FindPubCode = False
MsgBox "There are no results that match that criteria.", vbDefaultButton1
Me.FilterOn = False
End Function
I am getting mixed results, if any result at all.
around it.
I have a find button that I would like to give me the results for all titles
under that publisher code.
What is wrong with this?
Private Sub Command49_Click()
FindPubCode
End Sub
Private Function FindPubCode() As String
On Error GoTo Err_commandmsgbox
Dim ENTER_PUBCODE As String
Dim ERRORPARAMETER As String
ENTER_PUBCODE = InputBox("PLEASE ENTER THE PUBCODE")
Me.FilterOn = False
Me.Filter = pubcode
Me.FilterOn = True
ERRORPARAMETER = pubcode
FindPubCode = True
Exit Function
Err_commandmsgbox:
FindPubCode = False
MsgBox "There are no results that match that criteria.", vbDefaultButton1
Me.FilterOn = False
End Function
I am getting mixed results, if any result at all.