M
microsoft news
thank you looking at my post
i have a problem to pass a control to a function,here is my code:
Public Sub getmaterialSql(ByRef combobox1 As combobox)
Dim id As Integer
If IsNull(combobox1.Value) Then
MsgBox ("Can not be Null")
Exit Sub
Else
id = cint(combobox1.Value)
End If
.....
....
End Sub
when i refer such a function,The error occurs: it says "can not find object"
i have a problem to pass a control to a function,here is my code:
Public Sub getmaterialSql(ByRef combobox1 As combobox)
Dim id As Integer
If IsNull(combobox1.Value) Then
MsgBox ("Can not be Null")
Exit Sub
Else
id = cint(combobox1.Value)
End If
.....
....
End Sub
when i refer such a function,The error occurs: it says "can not find object"