Thank you for your help - I adjusted the titles accordingly and this is
what
I have.
=DLookUp("DepartmentName","tblDepartment","[DeptID] = " & [DeptNoParam])
Since this report references a parameter query as it's record source, the
department that I enter in the intial parameter query dialog box (the
query
the report is based on) is the one the report recognizes. What would be
the
exact syntax for the header to elimiante the second parameter dialog box?
I thought it would be:
=DLookUp("DepartmentName","tblDepartment","[DeptID])
but this is not working.
Thank you, Karen
Van T. Dinh said:
I guess the DeptNo uniquely determines the DeptName?
If it does, you can create a calculated TextBox in the Report Header
using
the DLookUp() function in the ControlSource to get the DeptName, e.g. set
the ControlSource to something like:
= DLookUp("DeptName", "tblDept", "[DeptNo] = " & [DeptNoParam])
including the equal sign where [DeptNoParam] is the name of the Parameter
in
the Query.
--
HTH
Van T. Dinh
MVP (Access)
I have a report that references a parameter query as it's record source.
When you click on the report, the parameter query dialog box opens and
asks
the user to enter the dept. number. The query works great, it
populates
the
report accordingly. What info do I set as the header so the department
name
poplulates the report accordingly?
Thank you, Karen