G
graeme34 via AccessMonster.com
Hi I have an Invoice report with a child report that contains the Invoice
details. Within the invoice details is a control called VATRate. I have
managed to get this rate into the report footer where I need it for the
invoice summary. To do this I set the control source of the txtVATRate
(textbox control in the report footer) to =subrepInvLine.Report![VATRate].
Now I am trying to use the Dlookup function to find the VATValue from tblVAT.
I have tried numerous different statements but none seem to work.
Here is what I have been trying :
=DLookUp("VATValue","tblVAT","VATRate = " & subrepInvLine.Report![VATRate])
I have experimented wit hother criteria such as = & Reports!repInvoice!
txtVATRate
Could anybody help me out please???
Thank you!
details. Within the invoice details is a control called VATRate. I have
managed to get this rate into the report footer where I need it for the
invoice summary. To do this I set the control source of the txtVATRate
(textbox control in the report footer) to =subrepInvLine.Report![VATRate].
Now I am trying to use the Dlookup function to find the VATValue from tblVAT.
I have tried numerous different statements but none seem to work.
Here is what I have been trying :
=DLookUp("VATValue","tblVAT","VATRate = " & subrepInvLine.Report![VATRate])
I have experimented wit hother criteria such as = & Reports!repInvoice!
txtVATRate
Could anybody help me out please???
Thank you!