17.11.2014 Views

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Select the table to be linked (in this case,<br />

Synonyms).<br />

4. Click the Form tab. Check Generate form. Set<br />

the style if you like.<br />

5. Click the Subform tab. The tab should contain<br />

reasonable data (Link To SYNONYMS (subform)<br />

= SYN_ID, Title = Synonyms) based on the<br />

choices made so far.<br />

7. Modify box properties as desired. You may<br />

want to change the box title, font, presence of<br />

scrollbars, etc.<br />

8. Click OK. The new subform appears showing<br />

one synonym.<br />

9. Optional: double-click in the subform to<br />

switch it to table view.<br />

The Subform is connected to the database you<br />

chose. In this example, when a record is retrieved in<br />

the main form, its Molname is used to search the<br />

Synonym field of the Synonyms table of CS_Demo.<br />

The subform displays the hits from this search.<br />

Changing the Layout<br />

of an Existing<br />

Subform<br />

You can use the Form Generator to automatically<br />

change the overall layout of an existing subform.<br />

To change the layout of an existing subform:<br />

ChemFinder<br />

6. Choose Mol_ID from the Link from MOLTABLE<br />

(main form) drop-down menu.<br />

NOTE: To use the subform relationally to the main<br />

form, the two forms must have one field in common.<br />

This Linking Field must share the same data type<br />

(text, integer, real) as a field in the main form. The<br />

fields do not need to have the same name.<br />

1. Right-click on the title bar of the subform data<br />

box and choose Properties.<br />

2. Click the Form tab.<br />

3. Select the Generate New Form checkbox, and<br />

then click the Style button.<br />

4. In the Form Generation dialog box, click the<br />

checkboxes of fields you do not want to<br />

include. (The default is all fields selected.)<br />

5. In the Form style section, select the form<br />

options you want. For a detailed description of<br />

the options, see “Changing the Layout of an<br />

Existing Form” on page 270.<br />

6. Click OK.<br />

7. In the Properties dialog box, click OK.<br />

An alert box appears.<br />

<strong>ChemOffice</strong> 2005/ChemFinder Relational Data and Subforms • 279<br />

Changing the Layout of an Existing Subform

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!