ACCESS 10 Windows 7
Have a large query with 37 columns that I use to fill a recordset. In order to see if the recordset had date in it I ran the following code:
BallsRs.MoveFirst
Dim N as Integer
N = 0
Do While BallsRs.EOF = False
Debug.Print BallsRs.Fields(N).Name
N = N + 1
BallsRs.MoveNext
Loop
All of the column names print in the immediate window, but I get the following error.
Run-time error '3265'
Item cannot be found in collection corresponding
to the requested name or ordinal.
I'm not sure, but it doesn't seem to be seeing the EOF.
Any help is appreciated.
jpl
Have a large query with 37 columns that I use to fill a recordset. In order to see if the recordset had date in it I ran the following code:
BallsRs.MoveFirst
Dim N as Integer
N = 0
Do While BallsRs.EOF = False
Debug.Print BallsRs.Fields(N).Name
N = N + 1
BallsRs.MoveNext
Loop
All of the column names print in the immediate window, but I get the following error.
Run-time error '3265'
Item cannot be found in collection corresponding
to the requested name or ordinal.
I'm not sure, but it doesn't seem to be seeing the EOF.
Any help is appreciated.
jpl