Hi All, I have a small problem:
My form functions in a way of having 2 possible underling quiries (with exactly the same fields and metadata) being changed from one to another when needed by the user. The problem is, I can't keep the filter as it was with the previous underlying query. There's some error occurring in the proccess of trying to keep the old filter and having it with the new underling query:
After this code, which changes form's underling query from one into another,
Form shows nothing at all.
Anyone is familiar with this kind of thing?
Thanks a bunch.
My form functions in a way of having 2 possible underling quiries (with exactly the same fields and metadata) being changed from one to another when needed by the user. The problem is, I can't keep the filter as it was with the previous underlying query. There's some error occurring in the proccess of trying to keep the old filter and having it with the new underling query:
After this code, which changes form's underling query from one into another,
Code:
Dim strFilter as String
strFilter = Me.Form.Filter
Me.Form.RecordSouce = "Query1"
Me.Requery
Me.Form.Filter = strFilter
Me.Form.FilterOn = True
Form shows nothing at all.
Anyone is familiar with this kind of thing?
Thanks a bunch.