E
Elaine
I have an inherited database set up in a way that I find confusing. I hope
someone can help as I don't have the expertise to normalize this database.
There are three tables, in particular, that are giving me trouble.
One called tblBooks (and this is imported monthly from Excel) has several
fields but the pertinent ones are PurchaseID (PK), Book and Copies.
Sample data
PurchaseID Book Copies
1 Book1 2
2 Book2 1
3 Book2 4
4 Book3 1
5 Book1 2
I have another table tblTotCopies with relevant fields Book(PK) and Copies
Book Copies
Book1 4
Book2 5
Book3 1
tblTotCopies is the parent table to a daughter table tblOffice with fields
Book (Foreign Key) OfficeNum
Book OfficeNum
Book1 L44
Book2 J106
Book2 J103
Book2 J105
Is there any way that I can easily update the Copies field in tblTotCopies?
I can update the Books field through an Append Query but I don't know how to
update the Book copies field. Append Queries don't work on the Copies field
as the same books are purchased over and over again. My real difficulty is
that tblTotCopies is a parent table and I am not able to delete it completely
each month as it has related fields in tblOffice.
I know that this is cumbersome but please help if you can. Thank you.
someone can help as I don't have the expertise to normalize this database.
There are three tables, in particular, that are giving me trouble.
One called tblBooks (and this is imported monthly from Excel) has several
fields but the pertinent ones are PurchaseID (PK), Book and Copies.
Sample data
PurchaseID Book Copies
1 Book1 2
2 Book2 1
3 Book2 4
4 Book3 1
5 Book1 2
I have another table tblTotCopies with relevant fields Book(PK) and Copies
Book Copies
Book1 4
Book2 5
Book3 1
tblTotCopies is the parent table to a daughter table tblOffice with fields
Book (Foreign Key) OfficeNum
Book OfficeNum
Book1 L44
Book2 J106
Book2 J103
Book2 J105
Is there any way that I can easily update the Copies field in tblTotCopies?
I can update the Books field through an Append Query but I don't know how to
update the Book copies field. Append Queries don't work on the Copies field
as the same books are purchased over and over again. My real difficulty is
that tblTotCopies is a parent table and I am not able to delete it completely
each month as it has related fields in tblOffice.
I know that this is cumbersome but please help if you can. Thank you.