Adding Bound Controls A bound control is tied to a field in an underlying table or query.
You can add a new bound control to your form at any time.
- Tap the Insert menu > New BoundControl
- You will then be able to Select the Table, Field and Control Type required.
- If you check the +Label checkbox, SpintDB Pro will automatcally add a Label control containing the Fieldname to the left of the selected control.
- Tap the OK button the complete the process.
<Index> Creating Controls
You can create any of the following Unbound controls:
To create any of the above, tap the Insert
menu and select the type of control required. Then tap on the
Form in roughly the position where you want to place the button. Place the
control by tapping and holding it with the stylus and dragging it into position. Use the
Control Navigation buttons to fine tune the placement. See
also How to work with Controls. SubForms A
SubForm
is a collection of controls that have an alternative
record source that can be related to the record source
of the MainForm. A
SubForm is a form within a form. The primary form is
called the Main Form, and the form within the form is
called the subform. A
Form/SubForm combination is often referred to as a
hierarchical form, a parent/child form. Sub forms are
especially effective when you want to show data from
tables or queries with a one-to-many-relationship. For
these types of subforms, you should specify its record
source properly to synchronize it with its master
form. You
can also insert a subform which will not synchronize
with any Master form. This type of subform has no
parent form. You can specify its RecordSource in event
procedures by using SetFormSource()
macro action which will be executed at run-time. For
a detailed explanation of SubForms, please refer to
the Glossary.
Adding
a child subform
- Tap the Tools > Form Properties menu item
- Tap the Data tab.
- Tap the Form Dropdown box and select a SubForm from the list. You can assign up to 5 Sub forms.
- Check the InUse field to "Yes".
- From the RecordSource Dropdown box, select an existing
table or saved query. To enter a new SQL
statement, tap the Ellipsis [...] button.
- Specify its MasterFrom from the MasterForm
list.
- For these
types of subforms, you should specify its
record source properly to synchronize it with
its master form.
For example The record source of the
master form:
"SELECT * FROM Orders" The record source of the
child form(subform): "SELECT * FROM
OrderDetail
WHERE OrderDetail.OrderID=!0!Orders.OrderID"
Note: !0! refers to MainForm, and
!1! refers to SubForm1 and !n! means
n-th SubForm.
Removing
a child subform
Note: Make sure the selected SubForm is the one you want to delete as all the controls on it will be deleted as well.
There is no undo function.
- Tap Tools > Remove SubForm
- Select the SubForm you want to delete from the list
- Tap Yes to proceed or No to cancel the operation
Related Topics How To Using Macros
<Index> Importing and Exporting Forms
Exporting a form saves the Form as a individual form
file(.pfs).
- Open a form you want to import in edit mode
- Tap File > Export form, then enter an appropriate name for the
.pfs file.
This feature is useful when you send a form only to other users of
SprintDB Pro.
<Index> |