Basics for Creating a Form on Your Own

The AutoPilot does a few things for you that you'll need to know how to do yourself. If you want your form to allow data entry, you'll need to create your own form.

Once you start creating your own forms, you're potentially into programming land, security land, data evaluation land, etc. So we don't provide all the answers, but we do point out the basics that you'll need to do.

Specify Where the Form's Data Comes From

Bring up the Form tearoff menu and click the Form Properties icon.

graphics/36inf04.jpg

If the icon isn't active, click any of the other control icons, like Check Box, and draw a check box in the document. Then the program will recognize that you're probably building a form and need the Form Properties control.

In the Data tab, specify the data source, if that's how you're using the form, and the table or query within the data source. See Figure 36-15.

Figure 36-15. Specifying the form's data source

graphics/36fig15.jpg

Change any other settings necessary; see the online help for more information.

Set Up Form-Level Processing

You can specify macros to run when form events occur. With the form properties window still open , click the Events tab, shown in Figure 36-16. Add an existing macro or one of your own to any of the events. For more information on macros, see the appendix.

Figure 36-16. Form-level events you can assign macros to

graphics/36fig16.jpg

Add Controls and Formatting

Now you get to the fun part, adding the fields and buttons , plus any graphics, headings, page formatting, or other elements unrelated to the functionality.

To do this, find the instructions you need in the sections in the rest of this chapter. We haven't covered all the fields, since many of them are simple to add, or are similar to the ones we do cover.



OpenOffice. org 1.0 Resource Kit
OpenOffice.Org 1.0 Resource Kit
ISBN: 0131407457
EAN: 2147483647
Year: 2005
Pages: 407

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net