Yes, I should have precised it:
I have a module that contains an array (of parameters), a function to set this array and one to get the parameters.
Before I need the query, I set the parameters.
In the query, I call the parameter that I need (here, it is: getParameter(1))
It seems messy, but actually it makes many things easier ( for example, if I had taken the parameter from a form, I would have had problems if the form's name changes). I learnt about this method in this forum.
Here it is:
-------------------------------------------------
Dim testCycleParameters(4)
Public Sub SetTestCycleParameters(ByVal InputVal, ByVal ParamID)
testCycleParameters(ParamID) = InputVal
End Sub
Public Function GetTestCycleParameters(ByVal ParamID)
GetTestCycleParameters = testCycleParameters(ParamID)
End Function
-------------------------------------------------
A real doozy! You said you learned about this method on this forum. Do you recall who answered your post or who wrote the post you found? He/she would be the best resource on this one.
It's beyond me!
Sorry! Jim "Get it right the first time, that's the main thing..."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.