D
Dave
I want to be able to look up a markup rate depending on supplier and price
type, i have a table with these listed eg
SUPPLIER TYPE RATE
ROC-001 RETAIL 20%
ROC-001 TRADE 10%
ROC-001 INTERNAL 5%
HAR-001 RETAIL 25%
HAR-001 TRADE 20%
However when i use DlookUp on my form it always shows me the rate for my
first supplier, when i want it to show the rate for the supplier that i have
entered on the form.
code im using in text box is:
=DLookUp ("Rate", "tblPriceMatrix", "Type = 'Retail'")
not sure how to write code so it will return value WHERE Me.SupplerID =
SupplierID in tblPriceMatrix
Hope this makes sence
Regards David
type, i have a table with these listed eg
SUPPLIER TYPE RATE
ROC-001 RETAIL 20%
ROC-001 TRADE 10%
ROC-001 INTERNAL 5%
HAR-001 RETAIL 25%
HAR-001 TRADE 20%
However when i use DlookUp on my form it always shows me the rate for my
first supplier, when i want it to show the rate for the supplier that i have
entered on the form.
code im using in text box is:
=DLookUp ("Rate", "tblPriceMatrix", "Type = 'Retail'")
not sure how to write code so it will return value WHERE Me.SupplerID =
SupplierID in tblPriceMatrix
Hope this makes sence
Regards David