I am writing a program that takes entries out of a Access Table reformats it and puts it into a word document. I actually have two questions the first,
Can I do something along these lines to set up an array?
INTArray = FRMVoterInfo.ADOVoterInfo.Recordset.RecordCount
Dim STRAddress(INTArray) as String
I currently have the array bing intitialized at 10000 however I know I only need around 6300. However In the future I may need less and I also may need more
Also at one point the program breaks with a Run-Time error of 94 Illegal use of Null.
I have set up a error handler Which is
On Error GoTo ErrorHandler:
LoopEnd:
INTCount = 1 + INTCount
FRMVoterInfo.ADOVoterInfo.Recordset.MoveNext
Else
INTCount = 1 + INTCount
FRMVoterInfo.ADOVoterInfo.Recordset.MoveNext
End If
Loop
Case 94 'Illegal Use of Null
BLNBreak = True
GoTo LoopEnd
I have only posted the cod that directly relates to the error and the error handler. The fields that are being read in from the Access Table are what the error is refering to.
If you need the entire code posted I will do that.
KJW
Can I do something along these lines to set up an array?
INTArray = FRMVoterInfo.ADOVoterInfo.Recordset.RecordCount
Dim STRAddress(INTArray) as String
I currently have the array bing intitialized at 10000 however I know I only need around 6300. However In the future I may need less and I also may need more
Also at one point the program breaks with a Run-Time error of 94 Illegal use of Null.
I have set up a error handler Which is
On Error GoTo ErrorHandler:
LoopEnd:
INTCount = 1 + INTCount
FRMVoterInfo.ADOVoterInfo.Recordset.MoveNext
Else
INTCount = 1 + INTCount
FRMVoterInfo.ADOVoterInfo.Recordset.MoveNext
End If
Loop
Case 94 'Illegal Use of Null
BLNBreak = True
GoTo LoopEnd
I have only posted the cod that directly relates to the error and the error handler. The fields that are being read in from the Access Table are what the error is refering to.
If you need the entire code posted I will do that.
KJW