Writer Guide
Entering data into a form
Once you have created a form and tied it to a database, you want to
use it to enter data into your data source, or modify data already there.
1) Make sure that the form is not in design mode. In the Form
Controls toolbar, click on the Design Mode On/Off button .
If design mode is off, most of the buttons on the toolbar will be
grayed out.
2) Make sure that the Form Navigation toolbar is on (View >
Toolbars > Form Navigation). This toolbar normally appears at
the bottom of the window.
Figure 415: Form Navigation toolbar
3) If there is existing data in the data source, use the control buttons
on the Form Navigation toolbar to look at different records. You
can amend data in a record by editing the values in the form. To
submit the changes, press the
Enter
key with the cursor in the
last field. The record is saved and the next record is displayed.
4) If there is no data in the form, you can enter it. To submit the new
record, press the
Enter
key with the cursor in the last field.
5) Other functions can be performed from the Form Navigation
toolbar, including deleting a record and adding a new record.
Advanced form customization
Linking a macro to a form control
You can set any form control (for example, text box or button) to
perform an action when triggered by some event. To see the full list of
events, right-click on the form control when the design mode is on,
select Control and click on the Events tab (Figure 405).
To assign a macro to an event:
1) Create the macro. See Chapter 13 (Getting Started with Macros)
in the
Getting Started
guide.
2) Right-click on the form control, select Control and click on the
Events tab.
3) Click the ... button to the right of the event to bring up the
Assign action dialog box (Figure 404).
486 OpenOffice.org 3 Writer Guide