#name? Error

dragnsteph

Registered User.
Local time
Today, 10:07
Joined
Jun 18, 2015
Messages
19
This seems to be one of the most common problems but I can't seem to figure mine out, even with all the posts and responses, so I'll post mine here and see if you guys can tell me what to do :) maybe then I can keep my hair. :banghead:

Code:
=DLookUp("SumOfHoursWorked","qryHoursWorkedAllTime","NameID = " & [qryHoursWorkedAllTime]![NameID])

I suspect I either 1) don't have something bound correctly, which confuses me so if that's the problem I will maybe need a little handholding... or 2) the NameID names are conflicting?

So far as I can tell the form is bound to the tblVolunteers table which has the NameID field in it. The query also has this field, and it works - it returns a listing of SumOfHoursWorked by NameID.
 
Try

=DLookUp("SumOfHoursWorked","qryHoursWorkedAllTime","NameID = " & [NameID])
 
Wow! That... worked. So I don't need to specify which NameID, it's OK that they are the same?

Thank you so much :)
 
Happy to help! The one outside the concatenation will come from the form. You were referring to a query, which the form didn't know anything about.
 

Users who are viewing this thread

Back
Top Bottom