I'm having a hard time coming up with the fields/tables I need for a database I'm trying to design for my fellow college classmates. We're working on this program called the Book Exchange that is going to allow students to trade books with each other. We collect books from graduating seniors and then use those books to trade with other students. The students can either give us another book that they have in exchange for one of ours so we can always ensure we have a pool of new books or they can borrow the book for a semester which depletes our available pool of books. Anyway I'm trying to build a relational database in Access and I've run into a dilemma. I have no way of being able to create a relationship based on a condition.
What I imagine is this:
A table for the books we have in inventory with the following fields:
Book Table:
Subject
Book Title
Author - First, Last Name
Edition
ISBN
Copies
A table for the students information:
First Name:
Last Name:
Student ID #:
Phone Number:
Email:
(Condition) Rented/Exchanged:
If the student has rented a book from us then I want that book to be removed from the inventory (the book table). However, if the student has decided to exchange a book with us then I'd like the inventory to update to reflect that change (a book going out and a book coming in). Now, what the problem is setting up a condition that will check what the student intends to do and then updating the inventory accordingly. I haven't figured out a way to do that via Access. I'm wondering if any of you guys have a better idea or if I should really be programming this or if MYSQL is the best way to go about this (please keep in mind the end users of this will not be programmers or tech savy).
If you need any clarification please ask! Thanks!