Jscott Posted February 13, 2007 Posted February 13, 2007 If someone clicks on a button to go to a specific layout, I want a Dialog to open and redirect them back to the original layout if a specific field is populated. Thanks, Stumped
LaRetta Posted February 13, 2007 Posted February 13, 2007 That's not a lot to go on but the button which switches layouts can hold the script (if it is based upon the same table occurrence). It might be something like: If [ IsEmpty ( thatField ) ] Go to Layout [ the other layout ] Else Show Custom Dialog [ OK ; "you can't go to that layout" ] End If But again, we have little information about whether the other layout is from a related table, another file or in a new window showing a different found set. If the 'field' which should be empty is within the same RECORD and you jump to another layout (based upon the same table occurrence) then you can test before the jump and not jump at all (if the field isn't empty).
Jscott Posted February 13, 2007 Author Posted February 13, 2007 Thank You. Sorry I was not more specific, but you answered my question very well!
Recommended Posts
This topic is 6554 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