I am working on a library application using Access 2000. I have a table of items that have been checked out (tblOutItems). The fields are ItemID, BorrowerID, DueDate, and Qty (the names in bold are combined to form the primary key). The ID fields are text, the DueDate field is (you guessed it) a date field, and Qty is a number.
The same ItemID can be checked out to multiple users, and one user can have multiple items. Also, one user can have the same ItemID due on multiple days. (Imagine if you checked out a book on Monday, and then another copy on Tuesday. It would have the same BorrowerID and ItemID, but a different DueDate.)
The problem comes in because I have been asked to allow for Items to be checked out indefinitely. In a previous incarnation of this program, I did this by allowing a null due date under a radically different table design. With the due date now part of the key, I can no longer do this.
At this point, I am considering all options, including (but by no means limited to), requiring a due date for all Items (which will cause some problems), using some sort of token value (but I don't know what I could use), or redesigning this table structure.
Please offer whatever suggestions or comments you can. Time is getting short, so I need to decide on a course of action quickly.
Thanks for you help and patience.
The same ItemID can be checked out to multiple users, and one user can have multiple items. Also, one user can have the same ItemID due on multiple days. (Imagine if you checked out a book on Monday, and then another copy on Tuesday. It would have the same BorrowerID and ItemID, but a different DueDate.)
The problem comes in because I have been asked to allow for Items to be checked out indefinitely. In a previous incarnation of this program, I did this by allowing a null due date under a radically different table design. With the due date now part of the key, I can no longer do this.
At this point, I am considering all options, including (but by no means limited to), requiring a due date for all Items (which will cause some problems), using some sort of token value (but I don't know what I could use), or redesigning this table structure.
Please offer whatever suggestions or comments you can. Time is getting short, so I need to decide on a course of action quickly.
Thanks for you help and patience.