DLookUp #Error on CrossTab Report

Justin.ITPro

Registered User.
Local time
Today, 17:24
Joined
May 23, 2013
Messages
10
I have a CrossTab Report that is getting the Counts of field values in a query sorted on CommunityGroup. I need to have another table's values inserted to do some calculations on these totals, so I used a DLookUp:

=DLookUp("CBudget","Contract Budget","[CommunityGroup] = " & [txtCommunityGroup])

However this gives me an #Error. Is there another way to pull in these values to get these calculations or what am I doing wrong?
 
One of the two (exactly as written, copy and paste):
Code:
=DLookUp("CBudget","[Contract Budget]","[CommunityGroup] = " & [CommunityGroup])

=DLookUp("CBudget","[Contract Budget]","[CommunityGroup] = '" & [CommunityGroup] & "'")
 
Last edited:
Also, you may need to bracket the table name due to the inadvisable space. I've seen it work without, but can't hurt to add them.
 
Thank you... that worked well. Figured it was simple. I am kicking myself, I should have known that.
 

Users who are viewing this thread

Back
Top Bottom