Hi,
I have form containing a combo box in FormFooter. I noticed than after I open and close the "Filter by Fom" window that combo box is always set as Null, which is not I want. I want to keep the value. So I tried to ApplyFilter to reset the vaule.
Here is my code:
Private Sub Form_Current()
varCtrl_test = [test]
End Sub
Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)
[test] = varCtrl_test
End Sub
[test] is the name of combo box and varCtrl_test is a global variable.
The value of [test] is saved into varCtrl_test and then [test] would be reset after applying filter. But it didn't occur in that way: [test] is still set as Null as usual.
I am sure the ApplyFilter event procedure is called. And more confusing is when I move that combo box from FormFooter to FormHeader then everything works well.
Is there anyone can cast a light on it?
I have form containing a combo box in FormFooter. I noticed than after I open and close the "Filter by Fom" window that combo box is always set as Null, which is not I want. I want to keep the value. So I tried to ApplyFilter to reset the vaule.
Here is my code:
Private Sub Form_Current()
varCtrl_test = [test]
End Sub
Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)
[test] = varCtrl_test
End Sub
[test] is the name of combo box and varCtrl_test is a global variable.
The value of [test] is saved into varCtrl_test and then [test] would be reset after applying filter. But it didn't occur in that way: [test] is still set as Null as usual.
I am sure the ApplyFilter event procedure is called. And more confusing is when I move that combo box from FormFooter to FormHeader then everything works well.
Is there anyone can cast a light on it?