Im creating a check in – check out database for RF guns. I have a
table that contains models.
ID (primary key)
Model
A table that contains Gun Details
ID (primary key)
Model_id
Gun_Number (assigned gun number by operations)
SerialNum
Location (this is the holding location while guns are not check out)
A table that contains Employee Info
ID (primary key)
FistName
LastName
BadgeID (this is what is scanned to retrieve employee info)
A table that contains records for check in and check out info
ID (primary key)
Gun_ID
Employee_ID
Checked Out (yes or no check box)
Checked In (yes or no check box)
What I picture happening is that the user will select “check in” or
“check-out” from the main menu. If check in is selected a form
will pop-up with a request to scan the user’s badge, then after
scanning a form will pop-up asking for location (this will check out
the gun in this location.
Sorry for the long post, here is my problem. I need to check if there
is a current record in the tblInOut that contains this particular gun
with a “checkedOut” check mark but no “Checked In”. If there
is a record like this then it means the gun was never checked back in.
So in short . I need to know how to check for a record and then
msgbox before actually adding the record. Any thoughts?