How to create a button on one database to open another database and then go back to main database?
I created a main database called "Main Menu", this DB will have navigational buttons on it to go to different databases. In turn, those databases will have a button to return to Main Menu.
Here is the content I place in a different post in a different forum:
The first database is where the buttons will go.
Name of database=Main Menu
Layout name=Main Menu
Scriptname=Go to Contacts
Open File [Open Hidden;"Contacts DB"]
Set Window Title[Current WIndow;New title:"Main Menu for Company Name"]
Adjust Window[Resize to Fit]
This is the database it is suppose to goto:
Name of database=Contacts DB
Layout name=Contact Personal Information
Name of script=View Contact Information
Script #1 is:
Close Window[Name:"Main Menu for Company Name"]
New Window[Name:"Contact Personal Information"]
Goto Layout["Contact Personal Information"(ACCR Contact Table)]
Adjust Window[Resize to fit]
Name of script=Back to Main Menu
Close Window[Current Window]
Perform Script["Go to COntacts" from file:"Main Menu"]