J
johnlute
I have a combobox [cbqrytypes] that I use to filter a form
[frmPackaging]. [cbqrytypes] has this simple AfterUpdate event:
Private Sub cbqrytypes_AfterUpdate()
Me.cbProfileID.Requery
Forms![frmPackaging].Form.Refresh
Forms![frmPackaging].Form.Requery
End Sub
The Record Source for [frmPackaging] has [cbqrytypes] in it so
everything works just dandy. The challenge is clearing the filter
after opening [frmPackaging] from another form. For example, I have
other forms with double-click events that will open [frmPackaging] and
filter to the primary key value which displays in [cbProfileID]. After
this when I try to change the value in [cbqrytypes] then weird things
happen because the form's filter is already set.
I've tried Me.Filter = "" in the above AfterUpdate but that does
absolutely nothing.
Any ideas are greatly appreciated!
[frmPackaging]. [cbqrytypes] has this simple AfterUpdate event:
Private Sub cbqrytypes_AfterUpdate()
Me.cbProfileID.Requery
Forms![frmPackaging].Form.Refresh
Forms![frmPackaging].Form.Requery
End Sub
The Record Source for [frmPackaging] has [cbqrytypes] in it so
everything works just dandy. The challenge is clearing the filter
after opening [frmPackaging] from another form. For example, I have
other forms with double-click events that will open [frmPackaging] and
filter to the primary key value which displays in [cbProfileID]. After
this when I try to change the value in [cbqrytypes] then weird things
happen because the form's filter is already set.
I've tried Me.Filter = "" in the above AfterUpdate but that does
absolutely nothing.
Any ideas are greatly appreciated!