Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2009, 02:39 PM
Registered User
 
Join Date: Aug 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default DAO

I am a novice and trying to learn VB; therefore, I purchased this book. I am on Chapter 6: Using DAO to Access Data, page 111. I am not understanding it. Anyway, I am trying to understand some code I keep seeing, for example:
Dim dbMyDB As DAO.Database
Set dbMyDB = DBEngine.Workspace(0).Databases(0)
The explanations I have read are not clear to me.

What is DAO and workspace? I need non-technical explanations or explanations explained simple enough that a dummy can understand it. I need a clearer understanding of DAO.

My thoughts right now are: DAO is like a library that holds templates to do this and that to your data--for instance, to delete a record, the code is store in a DAO library for delete--you have to go to that library, retrieve the template for delete, save the template to your document, and then use the template to perform a deletion.

Any simple explanations and/or examples are appreciated.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
DAO yanis97 Java Databases 0 September 6th, 2006 10:37 AM
Quick help on DAO! yamuna Excel VBA 0 August 2nd, 2006 08:53 AM
ADO vs DAO perrymans BOOK: Expert One-on-One Access Application Development 0 October 24th, 2004 11:36 PM
using DAO vubinhsg BOOK: Access 2003 VBA Programmer's Reference 2 July 22nd, 2004 08:46 AM
PLEASE HELP, VB6 and DAO mszewczyk VB Databases Basics 6 May 6th, 2004 10:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.