Dlookup not working

geoffcodd

Registered User.
Local time
Today, 02:58
Joined
Aug 25, 2002
Messages
87
I have the following formula, which won't work, I have experimented with the syntax with no joy

Unit_Cost: DLookUp("[Unit_Cost]","tblTariff","[Tariff_Name] = " & [Tariff] & " And [Tariff_Date] <= #" & [Month_Pres] & "#")

Tariff_Name & Tariff are TEXT
Tariff_Date & Month_Pres are Date

Any suggestions appreciated
Thanks
Geoff
 
Unit_Cost: DLookUp("[Unit_Cost]","tblTariff","[Tariff_Name] = """ & [Tariff] & """ And [Tariff_Date] <= #" & [Month_Pres] & "#")
 
Thanks for the quick reply works like a dream, I am never going to get use to the syntax in access

Thanks
Geoff
 
Text in "
Numbers without
Dates with #
 

Users who are viewing this thread

Back
Top Bottom