damezumari wrote:
[color=blue]
> I am using Access 2003 and WinXP.
>
> I have the following recordset:
>
> Dim csql As String
>
> csql = "SELECT valuation.* " _
> & " FROM Valuation " _
> & " INNER JOIN " _
> & " (ParcelBlock INNER JOIN ParcelBlockValuation ON
> ParcelBlock.ParcelBlockId = ParcelBlockValuation.ParcelBlockId) " _
> & " ON Valuation.ValuationId = ParcelBlockValuation.ValuationId " _
> & " WHERE (((ParcelBlock.Parcel) = '" & Me.cmbParcel.Value & "') "
> _
> & " And ((ParcelBlock.Block) = '" & Me.cmbBlock.Value & "')) " _
> & " ORDER BY Valuation.DateOfValuation desc"
>
> Set regValuation = CurrentDb.OpenRecordset(csql)
>
> Sometimes the query gives more than one record so I let the user move
> to next and previous records using regValuation.MoveNext and
> regValuation.MovePrevious code.
>
> How do I get the number of the current record? Example: if the query
> gives 5 records I would like to know if I am on record 1, 2, 3, 4, or
> 5.
>
> There is something called CurrentRecord, but it seems to be only for
> recordsets bound to forms.
>
> Do I have to use a manual counter or is there a better way?
>
> Regards,
>
> Jan Nordgreen
>
> I think again!, do you?
>
http://simpler-solutions.net/pmachin...thinkagain.php
>[/color]
Maybe AbsolutePosition will help.