Socrates877
Programmer
I'm new to vba but not new to programming. I want to pass a combo box from a form to a sub in a module. My code looks like this:
Private Sub Form_Load()
Dim ddlEditDate As ComboBox
Set ddlEditDate = Me!ddlDate
PopulateDateList (ddlEditDate)
End Sub
----Module-----
Public Sub PopulateDateList(ddlDateList As ComboBox)
'I commented out all the code just in case it interferered
End Sub
I get a 424 no object reference error.
Thanks
Private Sub Form_Load()
Dim ddlEditDate As ComboBox
Set ddlEditDate = Me!ddlDate
PopulateDateList (ddlEditDate)
End Sub
----Module-----
Public Sub PopulateDateList(ddlDateList As ComboBox)
'I commented out all the code just in case it interferered
End Sub
I get a 424 no object reference error.
Thanks