M
MarieM via AccessMonster.com
I have a report which displays Expense information totaled by month for each
employee. The report is grouped by employee.
I would like to display budget information which is calculated in a separate
query for each employee.
Through the use of the following DLookup statement I am able to pull the
information from the query.
However, the first record from the query, first employee's result is
displayed for each employee on the report.
=DLookUp("[%BudgetSpent]","qryEmpBudgetSummary","[GP Member Emplid]=[GP
Member Emplid]")
where [%BudgetSpent] is the field from the query
[qryEmpBudgetSummary] is the query
"[GP Member EmplID]=[GP Member EmplID]" is the criteria
How can I change the DLookup criteria to ensure it is pulling the correct
employee's information from the query?
I changed the criteria to use the full syntax of the report field, but that
didn't work either - it actually does not display anything when I use the
full syntax.
Any help would be greatly appreciated!
Marie
employee. The report is grouped by employee.
I would like to display budget information which is calculated in a separate
query for each employee.
Through the use of the following DLookup statement I am able to pull the
information from the query.
However, the first record from the query, first employee's result is
displayed for each employee on the report.
=DLookUp("[%BudgetSpent]","qryEmpBudgetSummary","[GP Member Emplid]=[GP
Member Emplid]")
where [%BudgetSpent] is the field from the query
[qryEmpBudgetSummary] is the query
"[GP Member EmplID]=[GP Member EmplID]" is the criteria
How can I change the DLookup criteria to ensure it is pulling the correct
employee's information from the query?
I changed the criteria to use the full syntax of the report field, but that
didn't work either - it actually does not display anything when I use the
full syntax.
Any help would be greatly appreciated!
Marie