Allow timed access to lock via Form (with time table)

I was wondering if there is any way to give certain people access to open/close locks at a time they reserved a room.
I want to make it so that when someone reserves a room they can put a time and then when they press reserve they will get access to that room at that time.