Christine Jackson
Registered User.
- Local time
- Today, 02:00
- Joined
- Mar 21, 2008
- Messages
- 15
Hi I have a number of tables (all linked). In my form i have created some DLookup's through a text box to pull through info from another of the tables so that the information is correct and no manual input is required.
However I would like to do a calculation that involves 2 of these dlookup text box's. Is this possible and what would the correct expression be.
My lookups on the text boxes are =DLookUp("[P11D Value]","[Vehicles]","[Reg No]= '" & [Reg No] & "'") and =DLookUp("[% On Emissions]","[Vehicles]","[Reg No]= '" & [Reg No] & "'").
The first I have called List Price and the 2nd % on Emissions, and to calculate I have tried the following expression
=Sum([List Price]*[% on Emissions])
but it dosn't work.
Anyone any idea where I'm going wrong.
Thanks
Chris
However I would like to do a calculation that involves 2 of these dlookup text box's. Is this possible and what would the correct expression be.
My lookups on the text boxes are =DLookUp("[P11D Value]","[Vehicles]","[Reg No]= '" & [Reg No] & "'") and =DLookUp("[% On Emissions]","[Vehicles]","[Reg No]= '" & [Reg No] & "'").
The first I have called List Price and the 2nd % on Emissions, and to calculate I have tried the following expression
=Sum([List Price]*[% on Emissions])
but it dosn't work.
Anyone any idea where I'm going wrong.
Thanks
Chris