Exercises


1. 

What is ADO, and why do you use it?

image from book

2. 

Why should you use a disconnected (unbound) recordset instead of a connected (bound) recordset?

image from book

3. 

What is SQL, and why do you use it?

image from book

4. 

What is the ADOX object model? Give some examples of what it will allow you to do.

image from book

Answers

1. 

ADO stands for ActiveX Data Objects and is a data access methodology that allows you to manipulate data in underlying data sources for VBA code. You use ADO to insert, update, delete, and retrieve data in databases that you want to interact with in your Access applications.

2. 

A disconnected (unbound) recordset does not maintain a connection to the database like a connected (bound) recordset does. Disconnected recordsets are typically better for reducing the number of open connections and record locks in your application. Disconnected recordsets are typically better because the data is cached locally until an update is made to the database. Disconnected recordsets require a little extra effort because you have to write code to handle navigation and updates to the data. Connected recordsets maintain a constant connection to the database, and Access has a lot of navigation features built-in for working with connected recordsets.

3. 

SQL stands for Structured Query Language and is a language that you can use to retrieve, add, update, and delete data in databases. SQL can be used in conjunction with ADO, or separately from ADO as part of your Access solutions.

4. 

The ADOX object model provides a library of features that you can use to manipulate databases, tables, users, groups, and security from your VBA code. The Catalog object is at the highest level of the object model.




Beginning Access 2007 VBA
Beginning Access 2007 VBA
ISBN: 0470046848
EAN: 2147483647
Year: 2004
Pages: 143

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net