[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

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.
0
snhandle
Asked:
snhandle
  • 2
  • 2
1 Solution
 
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 CoachmanCommented:
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
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now