C
contay
I am trying to create a form containing information from 3 tables which
are linked.
Invoice, Member, Vendor.
Invoice contains the memberId & vendorId (primary keys in the other
tables).
what is the best approach? subforms?
I tried dumping all the information into one form and have my own
custom add/find/next, etc buttons, but I run into certain errors
(trying to add) pertaining to the table relationships. For example
"The Microsoft Jet database engine cannot find a record in the table
'Members' with key matching 'Invoice_memberId'".
questions...when I have duplicate fields (the member id in the invoice
table, and the member id in the members table), which one do I display
in the form? I understand the resons behind the above error, but it
seems like i am not given a chance to fill everything out before it
decides to complain. If i continuously tab through the fields without
any type of field validation, it works. However, if someone tries to
tab past a field without entering information, and I present a warning
and set focus back to that field (any field..let's say invoice date),
it then decides to complain about the relationship.
basically, I am just trying to create a simple form connecting three
tables, and allow for records adds, etc and have cutomized buttons,
etc...i would apprecaite it if someone could point me in the right
direction. Having read a few posts, people seem to advice using
subforms. Let's say I take that approach and create a main form with
all the fields from the invoice table. When I create the subforms for
members and vendors, do I include the primary keys in that form? In
which case wouldn't I end up with duplicate fields on the form as a
whole?
Appreciate any help out there! Thanks!
are linked.
Invoice, Member, Vendor.
Invoice contains the memberId & vendorId (primary keys in the other
tables).
what is the best approach? subforms?
I tried dumping all the information into one form and have my own
custom add/find/next, etc buttons, but I run into certain errors
(trying to add) pertaining to the table relationships. For example
"The Microsoft Jet database engine cannot find a record in the table
'Members' with key matching 'Invoice_memberId'".
questions...when I have duplicate fields (the member id in the invoice
table, and the member id in the members table), which one do I display
in the form? I understand the resons behind the above error, but it
seems like i am not given a chance to fill everything out before it
decides to complain. If i continuously tab through the fields without
any type of field validation, it works. However, if someone tries to
tab past a field without entering information, and I present a warning
and set focus back to that field (any field..let's say invoice date),
it then decides to complain about the relationship.
basically, I am just trying to create a simple form connecting three
tables, and allow for records adds, etc and have cutomized buttons,
etc...i would apprecaite it if someone could point me in the right
direction. Having read a few posts, people seem to advice using
subforms. Let's say I take that approach and create a main form with
all the fields from the invoice table. When I create the subforms for
members and vendors, do I include the primary keys in that form? In
which case wouldn't I end up with duplicate fields on the form as a
whole?
Appreciate any help out there! Thanks!