hi,
I have a program that has been running for few years and now it started to give this error. the program is an executable; however, I have access to its source code. when troubleshooting I got to this section when the error occures.
-------------------------------
Public Sub InsertLink(varLinkField As Variant)
Dim I, j As Integer
Dim strR As String
strInsertField = ""
strInsertVal = ""
For j = 1 To UBound(varLinkField, 2)
For I = 1 To lngNumCols
If fldName(I) = varLinkField(0, j) Then
Exit For
End If
Next I
strInsertField = strInsertField & ", " & varLinkField(1, j)
//the subscript out of range is with strData((I, lngRowNumber)
strInsertVal = strInsertVal & ", " & fldQuote(I) & strData(I, lngRowNumber) & fldQuote(I)
Next j
End Sub
----------------------------------------------
I'm not sure if the problem with the program itself, which I double, or with the database ....
please help,
Thanks
I have a program that has been running for few years and now it started to give this error. the program is an executable; however, I have access to its source code. when troubleshooting I got to this section when the error occures.
-------------------------------
Public Sub InsertLink(varLinkField As Variant)
Dim I, j As Integer
Dim strR As String
strInsertField = ""
strInsertVal = ""
For j = 1 To UBound(varLinkField, 2)
For I = 1 To lngNumCols
If fldName(I) = varLinkField(0, j) Then
Exit For
End If
Next I
strInsertField = strInsertField & ", " & varLinkField(1, j)
//the subscript out of range is with strData((I, lngRowNumber)
strInsertVal = strInsertVal & ", " & fldQuote(I) & strData(I, lngRowNumber) & fldQuote(I)
Next j
End Sub
----------------------------------------------
I'm not sure if the problem with the program itself, which I double, or with the database ....
please help,
Thanks