ADO Tips & Tricks1) Connection Objecta)
Opening the Database
b)
Executing Commands
c)
Executing Queries
d)
Closing the Database
2) Recordset Objecta)
The Fields Collection
b)
Editing Records
3) Toolsa)
One Column Queries
b)
ComboBox Example
c)
One Row Queries
d)
Multi-Column Queries
e)
Getting Field Names
f)
ComboBox Example, 2
4) A Useful Examplea)
The SELECT Clause
b)
The WHERE Clause
c)
The Query
|
Editing
Records
To modify a record,
change its field values and call the Recordset's Update method.
'
Find the record to modify.
…
'
Make the changes.
rs!Name = new_namers!Street = new_street…'
Save the changes.
rs.UpdateTo make a new record,
use AddNew.
'
Make the new record.
rs.AddNew'
Set the field values.
rs!Name = new_namers!Street = new_street…'
Save the changes.
rs.Update |