UrbanPro
true

Learn MS Access from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

MS Access - DAO (Data Access Object)

Punit Kumar
13/04/2017 0 0

DAO is a well-known, easy to use object model for database services, including Microsoft Jet, ODBC, and in the future, OLE DB. DAO is also multi-lingual-you can use it from VB and VBA environments, FoxPro, and Visual C++. Your knowledge of DAO allows you to access a variety of data sources from a variety of development environments. DAO is also Microsoft's strategic object model for Database Access. Therefore, you can assume that it is going to be around for a long while.

dbEngine >  Workspace > Database > TableDef

dbEngine >  Workspace > Database > QueryDef

dbEngine >  Workspace > User > Group

dbEngine >  Workspace > Group > User 

The dbEngine object contains Workspaces, and workspaces contain Databases. Within Access, only one workspace can be open, so the current database is always Workspaces(0).Databases(0). Before you can refer to other objects, you need a database type variable, so DAO references usually begin with:

Dim db as database

Set db = dbEngine(0)(0)

For i = 0 to db.TableDefs(0).Fields.Count - 1   Debug.print db.TableDefs(0).Fields(i).NameNextFor i = 0 to db.TableDefs(0).Properties.Count - 1   Debug.print db.TableDefs(0).Properties(i).Name & " = ";   Debug.print db.Tabledefs(0).Properties(i)Next.

 

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

VBA Programming
The Windows version of Excel supports programming through Microsoft's Visual Basic for Applications (VBA), which is a dialect of Visual Basic. Programming with VBA allows spreadsheet manipulation that...

Working with Different Versions of VBA
Office 2010 introduces a new version of Microsoft Visual Basic for Applications (VBA) known as VBA 7.0 that is updated to work with 64-bit client installations. VBA 7.0 improves the performance of your...

Type Error In VBA
VBA Error Types: There are three types of VBA error that you may encounter when executing an Excel macro. These are: Compile Errors/Syntax errors: Compile Errors are recognized by the VBA compiler as...

Excel
The 1900 Date System In the 1900 date system, the first day that is supported is January 1, 1900. When you enter a date, the date is converted into a serial number that represents the number of elapsed...

Variant Datatype: Excel/Access/Office VBA
The Variant data type is the data type for all variables that are not explicitly declared as some other type. The Variant data type has notype-declaration character. A Variant is a special data type that...

Looking for MS Access Training?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for MS Access Classes?

The best tutors for MS Access Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MS Access with the Best Tutors

The best Tutors for MS Access Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more