Home  Fees/Services  Access Examples  Tutorials  Access Download  Articles  Search  Forums  Contact  Privacy  Links
Application Object Examples
Code DB VBA Example

Visual Basic Application Objects

 





Access Error
AddToFavorites
BuildCriteria
CloseCurrentDatabase
CodeDB
CompactRepair
ConvertAccessProject


Access CodeDB Method Example

CodeDb Method - You can use the CodeDb method in a code module to determine the name of the Database object that refers to the database in which code is currently running.
Use the CodeDb method to access Data Access Objects (DAO) that are part of a library database.

CodeDb Example:

Public Sub DisplayDB()
    MsgBox CodeDb.Name
End Su
b

The result will be a popup message with the full path and filename of the database running the code.

Below is an example of the popup message from the code above:

Code DB Method

More CodeDB information from Microsoft:








A Blue Claw Database Design Article:

Repair Corrupted Access Table
 





Blue Claw Database Design Downloadable Tutorial:
Choose Command Dynamic SQL Order By  





A Blue Claw Software Design Template:

Airline Reservations Database Template
 



Contact Information

Copyright 2000-2017 Blue Claw Database Design