i hope this is in the right forum.
I have a subform with a textbox that is used for VAT(TxtVAT) and another textbox with a subtotal(TxtSubtotal).
I have a table with the different VAT rates and the dates From and To.
What i would like is on the OnChange event of the TxtSubtotal box i want to add a Dlookup to lookup the correct VatRate Dependent on the Taxdate on the main form.
I`m assuming i need a where clause of some sort but im not sure how to put that into the Dlookup statement
Any help would be much appreciated
Thanks
Gareth
I have a subform with a textbox that is used for VAT(TxtVAT) and another textbox with a subtotal(TxtSubtotal).
I have a table with the different VAT rates and the dates From and To.
What i would like is on the OnChange event of the TxtSubtotal box i want to add a Dlookup to lookup the correct VatRate Dependent on the Taxdate on the main form.
I`m assuming i need a where clause of some sort but im not sure how to put that into the Dlookup statement
Any help would be much appreciated
Thanks
Gareth