Newbies brent_barrett Posted August 30, 2001 Newbies Share Posted August 30, 2001 Hello, Is it possible to open a specific database file based on a users entry in a popup list. i.e. I have a list of people: Barry, Sandy, Gary, each has a seperate database. I have set up a main page with a Popup list of their names once they choose their name I would like to switch them to another database ie. barry.fp5 Thanks Link to comment Share on other sites More sharing options...
DykstrL Posted August 30, 2001 Share Posted August 30, 2001 Create a Global field to enter the data. Then create the value list. The script would look something like this: If ("gOpen = "Barry"") Set Field("gOpen","") Open "Barry.FP5" (or if you want to have an open script run: Perform Script (Sub-scripts, External:"Barry.FP5()" [Open Script] End If Repeat the If/End If for each file associated with the pop-up list. On the layout, next to the gOpen field, place a "GO" button to launch the script. Link to comment Share on other sites More sharing options...
BobWeaver Posted August 30, 2001 Share Posted August 30, 2001 Try this script: code: If [ UserName = "Barry" ] Open [ Filename: Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8275 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