19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

9. When all fields have been specified, press the “Build the Table” button to save<br />

the table <strong>and</strong> return to the Database window. (If we later decide to add a new<br />

field or delete an existing field, we can return to the Table Structure window by<br />

highlighting the table in the Database window, clicking the right mouse button,<br />

<strong>and</strong> choosing Design.)<br />

(Note: The “Build the Table” button appears only for new tables, otherwise, use<br />

the Close button return to the Database window.)<br />

FIGURE 11-6 Add Index Window (Invoked from the Table Structure Window by Pressing<br />

Add Index.)<br />

How to use the Add Index window to specify a primary key<br />

1. Type in a name for an index, such as Principal, click on the field which is to be<br />

the primary field, <strong>and</strong> place check marks in the Primary <strong>and</strong> Unique check<br />

boxes.<br />

2. Click OK <strong>and</strong> then click Close.<br />

Note: To specify an ordinary index, follow all steps except turning on the Primary<br />

check box.<br />

3. Press “Build the Table” or Close to return to the Database window.<br />

FIGURE 11-7 Table window (Invoked from the Database Window by Double-Clicking on<br />

the Table name. Or, Choose the Table, Click on the Right Mouse Button,<br />

<strong>and</strong> Click on Open.)<br />

How to use the Table window<br />

Creating <strong>and</strong> Designing Databases 345<br />

1. If the table has no records, the Value text boxes will be blank. To add a record,<br />

type data into the fields <strong>and</strong> press the Update button.<br />

2. To add a new record to the end of a table that already contains records, click the<br />

Add button, type data into the fields, <strong>and</strong> press the Update button. If you make<br />

a mistake entering the data, click on the Cancel button.

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

Saved successfully!

Ooh no, something went wrong!