Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code Question

Status
Not open for further replies.

GR44

Technical User
Jan 13, 2003
6
US
I'm trying to create a report filter via a pop-up box. I went to the MS website and the provided some direction and codes. One particular code creates an error and wanted to see if you all could tell me what to look for to correct it.
The code was:
Private Sub Clear_Click()
Dim intCounter As Integer
For intCounter = 1 To 2
Me("Filter" & intCounter) = ""
Next
End Sub

The error it created stated "You cannot assign a value to this object". Can anyone tell me what to look for?
 
Hi

The code you posted assumes you have aa form with unbound two textbox controls with nales Filter1, Filter2 and enabled = true Locked = false

Have You? Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
I do have two combo boxes named Filter 1 and 2. Both have Enabled = Yes and Locked=No. Is that what you were asking?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top