Getting DLookup to refer to a previous record in a filter

45 pts.
Tags:
DLookup
Microsoft Access
I am trying to use DlookUp to get field values from a previous recrod wher the records have been filtered.

 

I have found the code below but it refers to ID-1, rather the actual ID that may be the previous record resulting from the filter.

=DLookUp("[MyField]","MyTable","[ID]=Forms![MyForm]![ID]-1")

Any suggestions?

Thank you.



Software/Hardware used:
MS Access
ASKED: February 6, 2010  9:52 AM
UPDATED: February 8, 2010  1:47 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following