TateForgey
7 years agoQrew Assistant Captain
One record per person per day
(First, I'm new to QB. So, sorry in advance.) I have been asked to create functionality where employees can check-in/check-out at the beginning/end of day. I found some apps in the exchange that were a little more complicated than I was hoping. I'd like a one-table solution. I'm thinking of a table with a single Text-Multiple Choice field that indicates "Check IN" or "Check OUT" and uses the record owner and the creation date/time for the only other data I need. Maybe just make two links that pre-fills the in or out values and saves the record. Simple!
The only thing I think would be nice is to be able to abort the save if that user had created that type of record (in or out) on that day with a message that a check-in or a check-out has already been created that day. Is this possible? What is the best way to do this?
The first thing that comes to my mind is to create a kind of formula field that queries the database looking for the current user as the record owner and the current date as the creation date and returns a "1" if that combination is found which becomes the trigger to abort the save. Is there a way to do this? Is there a complete different method that makes sense? Thanks!
The only thing I think would be nice is to be able to abort the save if that user had created that type of record (in or out) on that day with a message that a check-in or a check-out has already been created that day. Is this possible? What is the best way to do this?
The first thing that comes to my mind is to create a kind of formula field that queries the database looking for the current user as the record owner and the current date as the creation date and returns a "1" if that combination is found which becomes the trigger to abort the save. Is there a way to do this? Is there a complete different method that makes sense? Thanks!