I have been working on something that I feel should be very simple. It is a database for invoice and vouchers that pay for the invoices. On the basic level, it is a many to many relationship since one voucher can pay many invoices, and one invoice could be divided among many vouchers. So, I have 3 tables:
Invoice:
Inv_id
Inv#
Amount
Voucher:
Vouch_id
Vouch#
Mid:
Vouch_id
Inv_id
Amount (paid per invoice per voucher)
I use Auto-Increment in order to get the "id"s and link between the primary tables and the Intermediate using those ids, accepting them in Mid as numbers.
My issue is that I can't seem to get the Mid table to accept info when it is in this setup. Even if I have a form that just gets info for the Inv table, it creates an autonumber but is never received by the mid table.
Now, if I try to put info into the Voucher table as well, (to try to get a value to show up in mid) it gives me the error that says: You tried to assign the Null value to a variable that is not a Variant data type.
I feel like I am missing something simple, and this is a core application for Access.
Thanks in advance for any help!
Invoice:
Inv_id
Inv#
Amount
Voucher:
Vouch_id
Vouch#
Mid:
Vouch_id
Inv_id
Amount (paid per invoice per voucher)
I use Auto-Increment in order to get the "id"s and link between the primary tables and the Intermediate using those ids, accepting them in Mid as numbers.
My issue is that I can't seem to get the Mid table to accept info when it is in this setup. Even if I have a form that just gets info for the Inv table, it creates an autonumber but is never received by the mid table.
Now, if I try to put info into the Voucher table as well, (to try to get a value to show up in mid) it gives me the error that says: You tried to assign the Null value to a variable that is not a Variant data type.
I feel like I am missing something simple, and this is a core application for Access.
Thanks in advance for any help!