Link to home
Start Free TrialLog in
Avatar of snhandle
snhandle

asked on

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.
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

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.
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
Avatar of snhandle
snhandle

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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