Hi there,
This is probably me just being thick, but I have a problem with the following formula
Unit_Cost: DLookUp("[Unit_Cost]","tblTariff","[Tariff_Name] = """ & [Tariff] & """ And [Tariff_Date] <= #" & [Month_Pres] & "#")
It should look up the unit cost related to the Month_Pres
eg Month_Pres = 09/10/2001 Unit_Cost = 0.008540
Month_Pres = 07/09/2002 Unit_Cost = 0.010012
Tariff_Name Tariff_Date Unit_Cost
Interruptible_Gas 01/08/2000 0.007941
Interruptible_Gas 01/08/2001 0.008540
Interruptible_Gas 01/08/2002 0.010012
Interruptible_Gas 01/08/2003 0.010242
At the moment it returns 0.007941 for each record.
Any ideas anyone
Thanks
Geoff
This is probably me just being thick, but I have a problem with the following formula
Unit_Cost: DLookUp("[Unit_Cost]","tblTariff","[Tariff_Name] = """ & [Tariff] & """ And [Tariff_Date] <= #" & [Month_Pres] & "#")
It should look up the unit cost related to the Month_Pres
eg Month_Pres = 09/10/2001 Unit_Cost = 0.008540
Month_Pres = 07/09/2002 Unit_Cost = 0.010012
Tariff_Name Tariff_Date Unit_Cost
Interruptible_Gas 01/08/2000 0.007941
Interruptible_Gas 01/08/2001 0.008540
Interruptible_Gas 01/08/2002 0.010012
Interruptible_Gas 01/08/2003 0.010242
At the moment it returns 0.007941 for each record.
Any ideas anyone
Thanks
Geoff