# How to pass argrument using by Combo Box

Posted by Fai on June 16, 1999 at 17:06:20:

I have problem about how to pass argrument using by Combo Box. I have written some command as follows

Private Sub Form_Activate()
...
Call BrowseField(Form2, cboDocuType, "MPM", "TitleCode")
...
End Sub

Public Sub BrowseField(objForm As Form, cboBox As ComboBox, TableName As String, FieldName As String) ***
...
If Not Table.EOF Then
objForm.cboBox.AddItem Table.Fields(0)
Table.MoveNext
End If
...
End Sub

However, VB post message "User-define typed not define" at ***.
I have try to change "ComboBox" type into "Object" that cause another
error "Object doesn't support this property or method".
Please tell me how to correct this. Thank you very much!!!

Follow Ups: