richardparker
New member
- Local time
- Today, 18:03
- Joined
- Dec 9, 2015
- Messages
- 8
Hello,
I have a table where I keep track of [vendors] and an other table where i register [vendor invoices].
On the [vendor] table for every vendor there is field indicating the payment terms agreed with the particular vendor (eg. payment 30 days, payment 45 days, cash etc.).
The payment terms table - besides the ID field - only consists of the "Name" of the payment term and the "Number of days". The latter will be used for auto calculate invoice due dates.
So as I am prepairing the Form for the [vendor invoices] I set the field for the vendor as a combo box which works like a charm. Also besides the fact that I already have the payment terms set for the vendor I would like to be able to set a payment term for the individual invoices as well. Therefore I made a field on the [Vendor invoices] table dubbed "Payment term". This is because we have suppliers who issue invoices with 3 different payment terms depending on the product/service ...or what kind of underwear they're wearing.
So after having chosen the vendor I would like the [payment terms] field to automatically suggest a payment term looking at the previous [vendor name] field on the form and based on this look up the set Payment term for this particular vendor. So if the payment term really applies the user only has to hit TAB and jump to the next field.
Now I tried to use the DLookUp funciton but even if this is The Way I can't get the thing working.
Do you have any suggestions where I might go off the rails?
I have a table where I keep track of [vendors] and an other table where i register [vendor invoices].
On the [vendor] table for every vendor there is field indicating the payment terms agreed with the particular vendor (eg. payment 30 days, payment 45 days, cash etc.).
The payment terms table - besides the ID field - only consists of the "Name" of the payment term and the "Number of days". The latter will be used for auto calculate invoice due dates.
So as I am prepairing the Form for the [vendor invoices] I set the field for the vendor as a combo box which works like a charm. Also besides the fact that I already have the payment terms set for the vendor I would like to be able to set a payment term for the individual invoices as well. Therefore I made a field on the [Vendor invoices] table dubbed "Payment term". This is because we have suppliers who issue invoices with 3 different payment terms depending on the product/service ...or what kind of underwear they're wearing.
So after having chosen the vendor I would like the [payment terms] field to automatically suggest a payment term looking at the previous [vendor name] field on the form and based on this look up the set Payment term for this particular vendor. So if the payment term really applies the user only has to hit TAB and jump to the next field.
Now I tried to use the DLookUp funciton but even if this is The Way I can't get the thing working.
Do you have any suggestions where I might go off the rails?