Dlookup returning Error

punter

Registered User.
Local time
Today, 16:02
Joined
Nov 24, 2006
Messages
108
Hi,

I'm getting better at this access stuff and wanted to thank all of you in advance. I wouldn't have been able to come as far as I have if not for your time and efforts.

The attached database has a report called The Book. There is a text box named Duty. That text box should return the dollar amount of the duty for each ContainerNumber. I've been looking on the web and reading the help functions in access but I must be doing something wrong. Here is the formula I put in:

=DLookUp("[Duty]","Container_Vendor_Information","[ContainerNumber]=" & Reports![The Book]!ContainerNumber)

Any thoughts on what I'm doing wrong? Your help is always most welcome.

Thanks

Eddie
 

Attachments

=DLookUp("[Duty]","Container_Vendor_Information","[ContainerNumber]=""" & Reports![The Book]!ContainerNumber &"" )
 
what data type is container number?
 
Why not add the Container_Vendor_Information table to your record source and get the Duty field?
 
Thank you both so much for your quick replies. It works now and I see what I was going wrong.

Eddie.
 

Users who are viewing this thread

Back
Top Bottom