Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

Updating Records

See Also
Quick Tour
Employee Form

To allow users to update existing records in the database, we include an update button in our Employee form. Users navigate to a particular record, click on the Update button, make changes, and then commit.

While in update mode, our application makes the following restrictions:

· users cannot navigate to another record or perform another function

· users cannot change the employee number since this is the primary key

To code the Update function, we write an event procedure for the Update button and modify our Commit procedure to handle both updating and adding records. Refer to the following sections:

Coding the Update Button

Coding the Commit Button (Update and Add)