FAQ
Veelgestelde vragen voor zelfhulp.
Bekijk snel de veelgestelde vragen (en antwoorden) in de standaardlijst. Als u niet kunt vinden wat u zoekt, begin dan met het selecteren van uw Ability Office -versie en verfijn deze dan door zoektekst en/of categorie in te voeren.
Kennisbank artikel 103
How to create a control panel (or switchboard) in DatabaseSuppose you want a form that acts as a central point to the user and allows him to choose other forms or tables or run macros. Here is a guide on creating such a form:
- From Database Manager, select Create form using wizard
- Pick any table (or create a dummy table - it does not matter)
- Add one field and Finish the wizard
- In Form Design mode, delete the field since all we want the user to see is buttons and text
- Select Insert/Macro Button and draw out the button on the form
- Right click over the button and select Properties
- Set an appropriate caption and click on Macros
- In the Events column, select Click
- Click New Macro and give it a name to match its function
- Repeat steps 5 to 9 as required
- Save the form and in Database Manager, select Macros
- Click on each of the new macros in turn and right-click and select Edit
- You can rename the default "MacroName" to something more meaningful
- Add code to open a form or table or report. Examples:
- DBForms.Open("SomeFormName")
- Tables.Open("MyTableName")
- Reports.Open("Report1")
- Quit
Note that the above are all single line macros - you can make them as simple or complex as you want. The last of the above examples exits the database application.
You can now edit the form and add text (and pictures) to make it more user friendly.
See also Knowledge Base Article 100: Start Database and open a form for details on how to open the form automatically.