If you're going to have Scotch whiskey, the least you can do is share!
You got there before me, but I promise you, If I crack this with your assistance tonight, there's a bottle of finest Scotch Single Malt on its way to you...and by the way,
Scotch doesn't have a "
e" in Whisky. It's the Irish, Canadian and American stuff that has the "
e" in whisk
ey... You need to work on getting your syntax right !!
Now.. in regard to syntax, I can see that Dlookup
IS the way to go but I can't get it to work... I've looked at numerous examples on line today but I think I'm screwing it up on the
criteria syntax
Can you help?
I created a text box on the report to present the total and into the control source for the text box I put
DLookUp("[Totals]" , "[Qtytotals]" , "[Customer] = Report![Customer Name]")
Totals = the field Name in the Query that contains the figure I need in the report.
Qtytotals = The name I've given to the Query - which contains a column headed "Customer" and a column headed "Totals"
Customer = The field in the Query that I want to match to the customer name in the report.
Customer Name = the filed in the report
(Yes, I know that I didn't use proper naming convention here. There's a space between Customer and Name in the name of the field)
I'm trying say here.... Insert the content of the
Totals field from the
QtyTotals Query into the text box when the customer name in the Query matches the customer name in the Report.
The customer name field on the report is populated from the Customer details table.
Unfortunately, it doesn't return any figures in the text box
I've also tried this expression on my Data entry form, substituting the word
Report for
Form, but this only returns the
#Name? prompt.
Any final suggestions ?
Jimbo (trying hard)