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
|
Opening
the Database
- Either -
1.
Set the ConnectString property and use the Open method.
m_DBConnection.ConnectString = _"Provider=Microsoft.Jet.OLEDB.3.51;" & _"Persist Security Info=False;" & _"Data Source=" & db_namem_DBConnection.Open
- OR -
2.
Or use the Open method's parameters.
m_DBConnection.Open _"Provider=Microsoft.Jet.OLEDB.3.51;" & _"Persist Security Info=False;" & _"Data Source=" & db_name |