<% noads=1 %> <%dim crumb crumb="CodeDB" crumb1="Code DB VBA Example" %> VBA CodeDB
Home  Fees/Services  Access Examples  Tutorials  Access Download  Articles  Search  Forums  Blockchain Tech  Contact  Privacy  Links
Application Object Examples
<%response.write crumb1 %>

Visual Basic Application Objects

Home > Access Tutorials > VBA Application Object Methods<%response.write " > " & crumb%>
<% dim Gnum,Ynum Gnum="4458683265" Ynum="7682" dim Page_Type Page_Type="Prog" %>

Access Error

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

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:

Contact Information

<% Response.write "Copyright 2000-" & year(now) & " Blue Claw Database Design" %>