I have a payments table where I enter all payments in and out. I currently
have a payments form bound to the table and enter all payment info. I then
have to go to either the InvoiceOut form or the GoodsIn form to link the
payment to the appropriate Invoice. I do this using a combo box on each form
to fkPaymentID bound to pkPaymentID in the Payments table.
I want to be able to select the invoice connected to the payment from the
Payments form. I was thinking of a tabbed form with one tab for payments out
and one for payments in. What I'd like to know is the best way to select the
correct invoice and then display invoice table fields on the payments form
for that particular payment. Most payments are for several Invoices.
Any suggestions.
The table structure is
_____________
tblPayments
------------------
pkPaymentID
PaymentNumber
PaymentDate
PaymentAmount
TransReference (check number, credit card ref etc)
fkLodgementID
fkTransTypeID
fkCustomerID
_____________
tblkupTransType
-----------------
pkTransTypeID
TransactionType
____________
tblInvoiceID
---------------
pkInvoiceID
InvoiceNumber
InvoiceDate
OrderNumber
fkCustomerID
fkPaymentID
____________
tblGoodsIn
---------------
pkGoodsIn
DeliveryDate
SupplierInvoiceNumber
fkCustomerID
fkPaymentID
John