Hi, I have been working with a power app Time Clock that employees scan their ID on barcode. I have put 4 barcodes in the main screen for clock in, clock out, lunch in, and lunch out. I have been trying to use an IF statement so they have to clock in first and if they try to lunch in or lunch out before clock in then they get an error. if they try to clock out before clock in they get an error. I need help with the IF statement or a different way to make it so they can't lunch in before lunch out or clock out before clock in.
I would suggest that you take a look over my video on building a Time Tracker App. In there you will see all the formulas you should need to pull this off. The only difference is that you are choosing to use a bar code for this, in the app in the video, it is done with buttons.
I hope this is helpful for you.
_____________________________________________________________________________________ Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did. Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes Really want to show your appreciation? Buy Me A Cup Of Coffee!