M
Mike
Hi,
This is a follow up to my earlier posting. Steve has been
working with me on this but please feel free to answer as
I can use any help/recommendation as I can get.
I have created two tables: tblInvoice, with InvliceNumber
as my Prime Key, CustomerName, and InvliceDate.
The second table: tblTransaction, with many feilds such
as, Part Name, Part Number, Quantity sold, UnitPrice,
Total Cost, JobNumber, and the InvoiceNumber, with Index
(AutoNumber as the Prime Key).
Now I have created forms based on each table and Have
placed, frmTransaction as a subform on the frmInvoice. I
get this error that duplicate value in the prime key. I
removed the autonumber in frmTransaction and made the
InvoiceNumber the prime key for this table but I still
get the same error. I I go ahead with ouy full refrencial
Integrity, it allows me but I think the relationship
between the two must have the full refrencial Integrity
checked. Can someone please help me efining the
relationship and the prime keys for these two tables?
There will be many PartNumber in one Invoice.
, i.e. many product might me sold in one invlice.
Thank you in advance for your help.
Regards,
Mike
This is a follow up to my earlier posting. Steve has been
working with me on this but please feel free to answer as
I can use any help/recommendation as I can get.
I have created two tables: tblInvoice, with InvliceNumber
as my Prime Key, CustomerName, and InvliceDate.
The second table: tblTransaction, with many feilds such
as, Part Name, Part Number, Quantity sold, UnitPrice,
Total Cost, JobNumber, and the InvoiceNumber, with Index
(AutoNumber as the Prime Key).
Now I have created forms based on each table and Have
placed, frmTransaction as a subform on the frmInvoice. I
get this error that duplicate value in the prime key. I
removed the autonumber in frmTransaction and made the
InvoiceNumber the prime key for this table but I still
get the same error. I I go ahead with ouy full refrencial
Integrity, it allows me but I think the relationship
between the two must have the full refrencial Integrity
checked. Can someone please help me efining the
relationship and the prime keys for these two tables?
There will be many PartNumber in one Invoice.
, i.e. many product might me sold in one invlice.
Thank you in advance for your help.
Regards,
Mike