S
Stever
I have a search form that opens a subform in datasheet view with the records
that match the criteria. The problem is, the subform sometimes retains the
last filter value in the server filter properties of the subform. I tried
forcing this to clear by putting me.serverfilter ="" in the subforms' On
Close event but that had no effect.
Below is the code I use to open the subform. Any ideas why this is happening
or how to fix it?
Thanks in advance for your suggestions
Steve
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "sfrmCivil_SearchResults"
stLinkCriteria = "[Proj_No] = '" & Me![cmdFindProjNumbers] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
that match the criteria. The problem is, the subform sometimes retains the
last filter value in the server filter properties of the subform. I tried
forcing this to clear by putting me.serverfilter ="" in the subforms' On
Close event but that had no effect.
Below is the code I use to open the subform. Any ideas why this is happening
or how to fix it?
Thanks in advance for your suggestions
Steve
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "sfrmCivil_SearchResults"
stLinkCriteria = "[Proj_No] = '" & Me![cmdFindProjNumbers] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria