Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DAO rs loop by date sort question

Status
Not open for further replies.

TrollBro

Technical User
Sep 4, 2004
98
0
0
US
Hello

I want to use DAO to loop through a large file in ascending [date] field sort order, and for each record, evaluate the record's [amount] field. If the [amount] field is null, I want to append the dollar [amount] value from the prior (i.e. most recent prior date) field to the current record's null [amount] field. Thus if the value on June 5 is $1.25 and the value on June 6 is null, I want to populate the June 6th dollar field with $1.25.

How do I cycle through the records assuring the sort in ascending date order using DAO?

Any help would be very much appreciated.

Thanks!
 
Simply add an ORDER BY clause in the SQL code.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top