POSITION of current row

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

POSITION of current row

Post by sal21 »

I use

While Not RST.EOF

RST.MoveNext
'test=number actual row

Wend

during this loop is possible to know wath is the current line number row

User avatar
HansV
Administrator
Posts: 78575
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: POSITION of current row

Post by HansV »

Code: Select all

Dim lngRow As Long
RST.Open ...
lngRow = 0
Do While Not RST.EOF
    lngRow = lngRow + 1
    ....
    RST.MoveNext
Loop
Best wishes,
Hans