I know the answer is probably simple, but for some reason I can't figure this out.
Option Explicit
Dim arrParts
arrParts = array("1","2","3","4","5"
objReturn = Query("Object", arrParts(0))
Function Query(strType, strName)
' Execute function commands
Query = objReturn
End Function
When run, it errors out with 800A01C2 "Wrong number of arguments or invalid property assignment", but I don't see how it's possible since there are two arguments passed and received.
Any help would be appreciated. Thanks.
Option Explicit
Dim arrParts
arrParts = array("1","2","3","4","5"
objReturn = Query("Object", arrParts(0))
Function Query(strType, strName)
' Execute function commands
Query = objReturn
End Function
When run, it errors out with 800A01C2 "Wrong number of arguments or invalid property assignment", but I don't see how it's possible since there are two arguments passed and received.
Any help would be appreciated. Thanks.