hello everybody . I have a form used to search records according to different parameters (company name, phone, email, website, etc. ) All the fileds are not associated (see picture)
The button Pulisci Campi (Clera Fields) is supposed to clear all the fields and has this code:
But the message I get upon clicking is Runtime error 2448: Canno assign value to the object, debugging it goes toCode:Private Sub CMDPulisciCampi_Click() Dim ctl As Control For Each ctl In Me.Controls If TypeOf ctl Is TextBox Or TypeOf ctl Is ComboBox Then ctl = Null End If Next End Sub
It's making me mad. any help?Code:ctl = Null