H
HOW1
I have the following code programmed into a command button to allow the user
to filter records. After the filter has been applied the user closes the form
and clicks on the same command button to apply another filter. Can the form
be programmed so that the form holds the data entered in the previous search/
filter to prevent the user having to re-enter similar data again?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SEARCH"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Maximize
DoCmd.RunCommand acCmdFilterByForm
DoCmd.RunCommand acCmdClearGrid
Thanks in advance.
to filter records. After the filter has been applied the user closes the form
and clicks on the same command button to apply another filter. Can the form
be programmed so that the form holds the data entered in the previous search/
filter to prevent the user having to re-enter similar data again?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SEARCH"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Maximize
DoCmd.RunCommand acCmdFilterByForm
DoCmd.RunCommand acCmdClearGrid
Thanks in advance.