How to get prevous record data?

ylp

Registered User.
Local time
Today, 13:55
Joined
Mar 25, 2010
Messages
42
Hi,

I have a continuous form with a textbox, which displays one month records' integer data, I need to get the current and previous record and see which one is bigger ?

I can get current one easily, but is there a easy way to get the previous one?
Thanks for help!
 
Last edited:
Are you talking about a field from the previous record?
 
Yes, a field from a record.
 
yes, the pk is the autonumber.
 
1. Create a query that sorts the ID in DESC. It should also include the field you want to find
2. Use the DLookup function and for the domain use the query you created in 1
3. Set the WHERE argument of the DLookup to be, less than the current ID
 
thanks for your great help!
 

Users who are viewing this thread

Back
Top Bottom