S
Sreedhar
This must be very simple I guess, but I'm missing the basics much to the
annoyment of me and my Users. Please give me pointers so that I can take a
lead.
I've two tables tblCustomers and tblAccounts with Many-to-Many relationship,
with an intermediate table joining the CustomerId and AccountId (Primary keys
of the first two tables). Both these fields together are the Primary Key in
this Intermediate table, say, tblJoin.
I've two methods of updating this tblJoin,
---1) a form bound to tblJoin
---2) a form bound to tblCustomers, with unbound txtboxes for AccountIds of
the Customer - a command button updates the tblJoin using recordsets.
Now, how can I ensure that each record in tblJoin is unique ? I don't want
Access crying about PrimaryKey violations. That's not very User-friendly.
annoyment of me and my Users. Please give me pointers so that I can take a
lead.
I've two tables tblCustomers and tblAccounts with Many-to-Many relationship,
with an intermediate table joining the CustomerId and AccountId (Primary keys
of the first two tables). Both these fields together are the Primary Key in
this Intermediate table, say, tblJoin.
I've two methods of updating this tblJoin,
---1) a form bound to tblJoin
---2) a form bound to tblCustomers, with unbound txtboxes for AccountIds of
the Customer - a command button updates the tblJoin using recordsets.
Now, how can I ensure that each record in tblJoin is unique ? I don't want
Access crying about PrimaryKey violations. That's not very User-friendly.