G
Guest
Hi,
I would like to move the 'APPLY FILTER' button from the toolbar to my
'search form' and add coding to this command to prompt the user when a record
does not exist in my table.
My 'search form' is opened using a command button on my 'main form'. See my
coding below.
Private Sub Command10_Click()
On Error GoTo Err_Command10_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SEARCH"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.RunCommand acCmdFilterByForm
DoCmd.RunCommand acCmdClearGrid
I have tried creating an 'APPLY FILTER' button on my 'SEARCH FORM'. However
is appears to be greyed out when the form is opened and therefore does not
allow the user to apply the filter in this way.
With my current set-up the screen blanks when a record does not exist in the
table.
Any suggestions.
I would like to move the 'APPLY FILTER' button from the toolbar to my
'search form' and add coding to this command to prompt the user when a record
does not exist in my table.
My 'search form' is opened using a command button on my 'main form'. See my
coding below.
Private Sub Command10_Click()
On Error GoTo Err_Command10_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SEARCH"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.RunCommand acCmdFilterByForm
DoCmd.RunCommand acCmdClearGrid
I have tried creating an 'APPLY FILTER' button on my 'SEARCH FORM'. However
is appears to be greyed out when the form is opened and therefore does not
allow the user to apply the filter in this way.
With my current set-up the screen blanks when a record does not exist in the
table.
Any suggestions.