MS Access Report

I have report in Access where I am using "dlookup" formula(report footer) to get the data from another table. Now I am using parameter for the report. I want "dlookup" formula to use the same criteria that I use in the parameter. It should return only that that i use in the parameter.
snhandleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hnasrCommented:
You mean parameter in query for the report!

Just add the parameter as a field in the query, and will be available as a field in the report based on the query.

PARAMETERS x Short=100;
SELECT a.f1, x AS Expr1
FROM a
ORDER BY a.f1;

For further discussion, upload a sample database demonstrating the problem.
0
Jeffrey CoachmanMIS LiasonCommented:
Since you did not post your existing Dlookup, or post what the new parameters are, or how you are gathering them, or how many there are, ...
 ...it is difficulty to give you an exact solution.

This is why it is always helpful to post a sample database
0
snhandleAuthor Commented:
Attach is the database. When I run the Report2, it ask for criteria and I put "Source2" and the report Start Amount give me "Source1" Start Amount from 'Start Amount" Table instead of Source2. The start amount should match what I put in the parameters. thanks
Test-Report2.accdb
0
hnasrCommented:
Modify control source for sa1 to:
=DLookUp("[Beg Amount]","Start amount","Fund_Num='" & [Funding] & "'")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
snhandleAuthor Commented:
What if I use dropbox for the parameters, where I can select the source from drop down menu. Then what would be the dlookup formula. thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.