M
Mike
Hi,
I have been trying to create an Inventory and Transaction
database but having hard time relating my tables> I have
gone through the sample database in the Aceess help but I
couldn't relate it to what I'm trying to do.
I have a tblReceivalble which is serving as my Inventory,
this works fine, but when I try to relate it to my
Transaction table and the Invoice tables the relationship
which must be one-to-Many just doesn't work.
tblReceivable:
Index --AutoNumber
ProductID -- PrimeKey
ProductName
ProductDescription
Supplier
UnitsIn
UnitCost
tblTransaction:
Index -- PrimeKey
InvoiceNumber
JonNumber
Quantity (quantity sold)
UnitCost
Toatl
tblInvoice:
InvoiceNumber (code that generates a four digits Number
placed in the onclick propery of the add new record
command buton on my main form, frmInvoice)
As PrimeKey
CustomerName
Invoicedate
I'm having hardtime relating these tables. I have created
a form based on the tblInvoice and another form based on
tblTransaction and have put, frmTransaction as a subform
on the frmInvoice (Main Form), but when I try to add a
record, it says that I'm duplicating record in the
primkey or the index.
Please help defining a proper relationship between these
tables and any othet suggestion that makes my life easier.
Than you in advance for your help.
Mike
I have been trying to create an Inventory and Transaction
database but having hard time relating my tables> I have
gone through the sample database in the Aceess help but I
couldn't relate it to what I'm trying to do.
I have a tblReceivalble which is serving as my Inventory,
this works fine, but when I try to relate it to my
Transaction table and the Invoice tables the relationship
which must be one-to-Many just doesn't work.
tblReceivable:
Index --AutoNumber
ProductID -- PrimeKey
ProductName
ProductDescription
Supplier
UnitsIn
UnitCost
tblTransaction:
Index -- PrimeKey
InvoiceNumber
JonNumber
Quantity (quantity sold)
UnitCost
Toatl
tblInvoice:
InvoiceNumber (code that generates a four digits Number
placed in the onclick propery of the add new record
command buton on my main form, frmInvoice)
As PrimeKey
CustomerName
Invoicedate
I'm having hardtime relating these tables. I have created
a form based on the tblInvoice and another form based on
tblTransaction and have put, frmTransaction as a subform
on the frmInvoice (Main Form), but when I try to add a
record, it says that I'm duplicating record in the
primkey or the index.
Please help defining a proper relationship between these
tables and any othet suggestion that makes my life easier.
Than you in advance for your help.
Mike