Passing a ComboBox as a parameter in Access 2003

  • Thread starter Thread starter Tom Manuel
  • Start date Start date
T

Tom Manuel

I'm trying to pass a ComboBox as a parameter.

Private Sub GetBox(ByRef cbox as ComboBox)
debug.print cbox.name
end sub

private Sub SendBox
call GetBox(cboMyComboBox)
debug.print cboMyComboBox.name
end sub

Access says the combo box is null in GetBox
The debug.print statement in SendBox works

How do you pass a combo box as a parameter?

Tom
 
I tried this and it works.
Running W2K pro w/ Access 2000.
Try passing as Control?
 
Back
Top