J
jlydon
I have a library in a small school which needs to control its
inventory. I have three tables, one with the book information, one
with Student information and one with Book-Status. In the book Status
there is a form which is used when a book is taken out or returned.
We scan in the student ID number, then scan in the book barcode
(unique to each book). On the screen appears the student name and the
book name. There is then a place to register the date for taking out
the book. This information is then entered into the table of the Book-
status. However, when the book is returned and the Student ID and
Book barcode are re-entered the return date is recorded and this forms
a new line in the table, rather than update the previous entry. So
when I run a query to see which books are still out or overdue, it
lists all the books ever taken out, because the return-date
information is not on the same row as the out-date information, rather
it is in a new row.
Is there some way to set the form so that the original row of
information updated with the return-date when the book is returned, so
that when I run a query I will see only which books have not been
returned. Thanks.
This is the structure I have set up:
Books:
barcode - primary key
author
title
etc.
Students:
student_id- primary key
first_name
last_name
etc.
Book-status:
barcode (related to books.barcode)
student_id (related to students.student_id)
date_out - (date that the book was signed out)
date_in - (date that the book was returned)
inventory. I have three tables, one with the book information, one
with Student information and one with Book-Status. In the book Status
there is a form which is used when a book is taken out or returned.
We scan in the student ID number, then scan in the book barcode
(unique to each book). On the screen appears the student name and the
book name. There is then a place to register the date for taking out
the book. This information is then entered into the table of the Book-
status. However, when the book is returned and the Student ID and
Book barcode are re-entered the return date is recorded and this forms
a new line in the table, rather than update the previous entry. So
when I run a query to see which books are still out or overdue, it
lists all the books ever taken out, because the return-date
information is not on the same row as the out-date information, rather
it is in a new row.
Is there some way to set the form so that the original row of
information updated with the return-date when the book is returned, so
that when I run a query I will see only which books have not been
returned. Thanks.
This is the structure I have set up:
Books:
barcode - primary key
author
title
etc.
Students:
student_id- primary key
first_name
last_name
etc.
Book-status:
barcode (related to books.barcode)
student_id (related to students.student_id)
date_out - (date that the book was signed out)
date_in - (date that the book was returned)