controltype keeps giving method or data member not found

C

Chris

Hope someone can give me the easy answer

Following code keeps giving me the "Method or Data Member not Found"

Private Sub cmdClear_Click()
Dim ctl As Controls

For Each ctl In Me.Controls

If ctl.ControlType = acComboBox Then
ctl = Null
ElseIf ctl.ControlType = acTextBox Then
ctl = Null
Else
End If

Next

End Sub

Am I missing a reference or something.

Thanks
Chris
 
C

Chris

Thanks. Taking the s off fixed the error message and will change the null to
nothing.
Chris
 

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