I have built a small but useful, to me, database to log our utility bills etc.
I made 3 tables:
tblBlances
tblGas
tblElec
In each table I have ID as autonumber and made it a PK, and also linked the tblGas and tblElec to tblBalances in the Relationships window.
I have one form which shows all the information for each record from the relevant query for each table.
Now for some reason I cannot add a new record in the form, and it transpires that it seems to be down to having the 3 PK's. So I removed the PK from tblElec, and now I can add a new record.
I would have thought that each table has to have a PK, but as a relative newbie with this, I am now not so sure.
Can some one please explain why the above situation occurred and why I seemed to have cured it.
Thanks
I made 3 tables:
tblBlances
tblGas
tblElec
In each table I have ID as autonumber and made it a PK, and also linked the tblGas and tblElec to tblBalances in the Relationships window.
I have one form which shows all the information for each record from the relevant query for each table.
Now for some reason I cannot add a new record in the form, and it transpires that it seems to be down to having the 3 PK's. So I removed the PK from tblElec, and now I can add a new record.
I would have thought that each table has to have a PK, but as a relative newbie with this, I am now not so sure.
Can some one please explain why the above situation occurred and why I seemed to have cured it.
Thanks