April15Hater
Accountant
- Local time
- Today, 18:05
- Joined
- Sep 12, 2008
- Messages
- 349
Hey guys-
I am treading on unchartered waters here I have never used the dlookup function and reports are generally a problem area for me.
But I'm trying to implement dlookup into a textbox in the detail section of a report and I can't seem to get it to work right. But when I run it, it is coming up with a value input window for FunctionID. I've searched all around and everything seems to be right syntactically. I posted my code below.
Thanks,
Joe
I am treading on unchartered waters here I have never used the dlookup function and reports are generally a problem area for me.
But I'm trying to implement dlookup into a textbox in the detail section of a report and I can't seem to get it to work right. But when I run it, it is coming up with a value input window for FunctionID. I've searched all around and everything seems to be right syntactically. I posted my code below.
Code:
=DLookUp("[tblContractorFunction].[FunctionCost]","tblContractorFunction","tblContractorFunction.FunctionID = " & [Reports]![rptTimesheet]![FunctionID] & "AND tblContractorFunction.FunctionType = Aerial")
Thanks,
Joe