Hi there,
I am definitively not an advanced Access user, but I always find my way around it, VBA, creating tables, queries, etc.
That being said, I am trying to build a "sign-in Form" for a School Office. They receive students on a daily basis for several reasons (reasons we do not need in the DB). What I would like to do is to build a form that allows a dedicated user to scan ID's, then what happens next is the trick:
* Get student name from Students DB (Table) and show it on screen
- St_ID (PK)
- St_Name
* Add a new record to Daily_Signin (Table)
- St_ID
- St_Name
- Date_in (MM/DD/YY)
- Time_in (HH:mm:ss)
- Period_in (based on the time, i.e. 7:20 - 10:44 = 1st period)
here is where it gets trickier for me, on same table (or maybe a new one?)
- Time_out (HH:mm:ss) no need for date as it should always be the same day
this Time_out should be recorded when the student leaves the office, now how to achieve this? well the first thought is of course to scan the ID again, hopefully on the same form and using VBA compare if the student has ONLY 1 Time_in with no Time_out and then add the time_out, yet a student can be in the office several times a day (not often, but possible), which in case I need for the code to be able to check for if student has a pair (or more) of time_in & time_out already, then to mark a new time_in
I would then need to run Reports by period_in for today (not a big deal once I have the data)
Any ideas how/where to tackling this mess?
Thank you very much for all/any of your help.