Problem with search form

G

Guest

Hi I am getting an error when I use the filter reset funtion on my form.
Run-time error 2448 (Can't assign a value to this object).

When I debug it brings me to this line of code: (ctl.Value = Null)


'Clear all the controls in the Form Header section.
For Each ctl In Me.Section(acHeader).Controls
Select Case ctl.ControlType
Case acTextBox, acComboBox
ctl.Value = Null
Case acCheckBox
ctl.Value = False
End Select
Next

Can anyone figure out what might have changed to stop it from working?
 

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