[AccessD] A2K: Another Recordset Syntax Q

Stuart McLachlan stuart at lexacorp.com.pg
Tue Sep 7 01:39:16 CDT 2004


On 7 Sep 2004 at 16:26, Darren DICK wrote:

>   For x = 1 To rs.RecordCount
>   	With rs
> 	      .MoveLast
>       	 MsgBox !SiteName
>             .MoveNext
>       End With
>   Next
> 

You keep moving to the last record before you display the Sitename

Try

rs.Movefirst
While not rs.eof
     Msgbox rs!Sitename
    rs.Movenext
Wend
-- 
Stuart





More information about the AccessD mailing list