If so how?/What am I doing wrong?
VB Code:
Private Sub FindOrderedVia(ByVal vintValue, ByVal vintUpper As Integer, ByRef ropt() As OptionButton) On Error GoTo Error_FindOrderedVia Dim intLoop As Integer gerrError.PushErrorStack "FindOrderedVia", Me.Name For intLoop = 0 To vintUpper If intLoop = vintValue Then ropt(intLoop) = True Else ropt(intLoop) = False End If Next intLoop Exit_FindOrderedVia: gerrError.PopErrorStack Exit Sub Error_FindOrderedVia: gerrError.ErrorHandler "FindOrderedVia", Me.Name, Err.Number, Err.Description Resume Exit_FindOrderedVia End Sub
I get a mismatch error when I use the following to call . . .
VB Code:
Call FindOrderedVia(.Fields("PurOHOrderedVia"), UBound(optordered), optordered)





Reply With Quote