This is where the Parameters are comming from :
Dim dbDate As Date
dbDate = CDate(strDateIn) <= strDateIn is a string that is sent to the routine, holding a date in the form of mm/dd/yyyy
Dim strPieceName(1 To 3) As String
strPieceName(1) = "Top"
strPieceName(2) = "Main Body"
strPieceName(3) = "Bottom"
Dim intPieceTypeID(1 To 3) As Integer
intPieceTypeID(1) = 2
intPieceTypeID(2) = 1
intPieceTypeID(3) = 3
Dim strNDEWow(1 To 3)
strNDEWow(1) = "MT of MT"
strNDEWow(2) = "UT of UT"
strNDEWow(3) = "RT of RT"
Dim strNDEType(1 To 3)
strNDEType(1) = "MT"
strNDEType(2) = "UT"
strNDEType(3) = "RT"
No matter which query I try to run it always askes for the parameters.(When i run from the IDE, when i run from VBA it says "Error, expected more parameters")
|