Remove Filter and Clear Data

G

Guest

I have a dialog box that brings up a report. In my dialog box I have 4 combo
boxes and use an Apply Filter button, which works fine. The Remove Filter
button works, but I need to clear the choses in the combo boxes. How can I
do this?

Below is the code that works.

Private Sub cmdRemoveFilter_Click()
On Error Resume Next
Reports![rptDynamic-Report].FilterOn = False
End Sub

I tried to use this this code: Me.cboTestName.Value = "" with each
of the combo box names, but must not be doing something right.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top