G
Guest
I have a few questions about making a checkin/out system:
Here's my basic design:
table:members
mid-pk
name
email
etc.
table:folders
fid-pk
description
table:checkouts
mid
fid
date out
date in
I also have a many-to-many relationship setup with these three tables.
1) I need a form where I can search for a member name(NOT mid) and then
search for available folders to checkout to them. I also need to be able to
add a new member at this point.
2) I need to do the reverse: take a folder and search for it, see who has
it checked out, not necesarily searching using the primary key.
3) I need a form to checkin the folder, by looking up a member name(ie,
member says, "here's my folder, check it in please).
4) I need a checkin/out history.
5) I need to record what member(same group of members as above) checked
something out.
6) I need to use history from a previous year to checkout a folder this
year.(ie, ah, you got folder A last year, here's folder A this year). With
this, I also need the option to give them a different folder.
I know this can be done, and I know it's out there somewhere, but I can't
seem to find it explained anywhere, and I'm having trouble tearing apart
templates that seem to do it, especially with item 1 above
Here's my basic design:
table:members
mid-pk
name
etc.
table:folders
fid-pk
description
table:checkouts
mid
fid
date out
date in
I also have a many-to-many relationship setup with these three tables.
1) I need a form where I can search for a member name(NOT mid) and then
search for available folders to checkout to them. I also need to be able to
add a new member at this point.
2) I need to do the reverse: take a folder and search for it, see who has
it checked out, not necesarily searching using the primary key.
3) I need a form to checkin the folder, by looking up a member name(ie,
member says, "here's my folder, check it in please).
4) I need a checkin/out history.
5) I need to record what member(same group of members as above) checked
something out.
6) I need to use history from a previous year to checkout a folder this
year.(ie, ah, you got folder A last year, here's folder A this year). With
this, I also need the option to give them a different folder.
I know this can be done, and I know it's out there somewhere, but I can't
seem to find it explained anywhere, and I'm having trouble tearing apart
templates that seem to do it, especially with item 1 above