W
Wim
Hi all,
I want to look up a price for an item and store it in an
field InvoiceDate in a table called Invoices.
This price was valid from, say, 01 jan 2003 till 31 dec
2003. The prices are in a table : Ref_Prices. This
particular item's key is, say, : 12.
So : PriceId = 12, StartDate=01/01/2003,
EndDate=12/31/2003.
I tried :
dlookup("Price"; "Ref_Prices"; "PriceId = " & 12 & " and
InvoiceDate >= #" & [Ref_Prices]![StartDate] & "# and
InvoiceDate <= #" & [Ref_Prices]![EndDate] & "#")
But I get invalid use of null error.
Has anyone a clue of the correct syntax ?
Thanks in advance,
Wim
I want to look up a price for an item and store it in an
field InvoiceDate in a table called Invoices.
This price was valid from, say, 01 jan 2003 till 31 dec
2003. The prices are in a table : Ref_Prices. This
particular item's key is, say, : 12.
So : PriceId = 12, StartDate=01/01/2003,
EndDate=12/31/2003.
I tried :
dlookup("Price"; "Ref_Prices"; "PriceId = " & 12 & " and
InvoiceDate >= #" & [Ref_Prices]![StartDate] & "# and
InvoiceDate <= #" & [Ref_Prices]![EndDate] & "#")
But I get invalid use of null error.
Has anyone a clue of the correct syntax ?
Thanks in advance,
Wim