Richard Corso Posted August 9, 2009 Posted August 9, 2009 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?
Steven H. Blackwell Posted August 9, 2009 Posted August 9, 2009 Allow User Abort=Off Set Error Capture=On should help with this. Steven
Richard Corso Posted August 9, 2009 Author Posted August 9, 2009 (edited) 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, 2009 by Guest
Recommended Posts
This topic is 5586 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now