August 9, 200916 yr I built a data base for work and at the end of our shifts a button closes out the shift and prints the report, then runs a Re-Log In script for the next attendant. My problem is if a user chooses the cancel button it will log them in as the last user. I tried to use the Get [Last Message] with no luck. Is there a way to stop this?
August 9, 200916 yr Author Thanks, I tried with no luck. This is the script I am using. Do not know if it is wrigt. THE BUTTON Show Custom Dialog["Log In";"You are about to start a new shift. Do you want to continue."] If[Get(LastMaseageChoice)=2] Go to Layout["Log In"(Log In)] Else If [Get(LastMaseageChoice)=1] Perform Script["[color:red]Re-Login New Record"] End If SCRIPT-Re-Login New Record [color:red]Go to Layout["Main"(Main)] Pause/Resume Script [Duration(seconds):1] Re-Login[] Perform Script]["New Record"] Show/Hide Status Area[Lock; Hide] Adjust Window[Resize to Fit] Go to Record/Request/Page[Last] Edited August 9, 200916 yr by Guest
Create an account or sign in to comment