In Microsoft Access, "namespace" is not a property or command you assign inside Design View; the closest real object is the Name property of a control, field, form, or report, which you view and edit in the Property Sheet while the object is open in Design View. If you have heard "namespace" in an Access context, it almost always refers to one of four things: control and field names, the VBA project name, the VB_Name attribute in a module, or the XML namespace used when exporting objects. This article separates those meanings, because the practical steps differ for each, and explains how Access actually handles naming so you can avoid the duplication and "invalid name" problems that send people looking for a "namespace" setting that does not exist.

What "namespace" means in Access, and why there is no Namespace box

A namespace is a container that keeps names unique so that two objects can share a short label without colliding. In languages such as C++, C#, and XML, you declare one explicitly. Access is not built that way at the object level. Every control on a form or report has a Name property that must be unique within that form or report. Every field in a table has a Field Name that must be unique within that table. Every VBA procedure must have a unique name within its module, and public procedures must be unique across the whole standard project. Uniqueness is enforced by scope rather than by a declared namespace.

Design View therefore gives you a Name property, not a namespace property. The nearest thing to a namespace declaration is the VB_Name attribute that appears at the top of every code module, and the project name shown in the Visual Basic Editor's Project Explorer. Those are the places to look if your question is really about VBA.

There is also one place where the word "namespace" appears literally in Access: XML export and import. When you export a table, form, or report to XML, Access writes a namespace declaration into the root element, and when you import XML you can map elements by namespace. That is an XML concept carried along by the file format, not a setting you configure for the database itself.

Getting the Name property in Design View

This is the interpretation most people mean, and the procedure is quick.

1: In the Navigation Pane, right-click the form or report and choose Design View. (For a table, right-click and choose Design View as well.) 2: Click the control or field whose name you want to see. Selection handles appear. 3: Open the Property Sheet with F4, or on the Design tab click Property Sheet. 4: On the All tab, the first row is Name. That value is the identifier Access uses in expressions, macros, and VBA.

If the Property Sheet is already open, clicking a different control updates the Name box automatically. You can also read and set the name in the Name Box at the left of the formula bar when a control is selected, though the Property Sheet is more reliable because it shows the full set of properties.

Renaming a control after you have built event procedures is the classic source of trouble. Access does not rewrite the procedure names in your VBA module, so a cmdSave_Click handler stops firing once you rename the button to cmdSubmit. The fix is to rename the procedure in the code window to match, or to rename the control before attaching events. Field renames are safer because Access updates bound controls, expressions in queries, and most references, but it will warn you and cannot update every string built at runtime.

Two naming rules matter here. Names cannot duplicate another control on the same form or report, and they cannot be the same as certain reserved words or as the name of a property or method the object already exposes. A control named Name or Value will collide with built-in members, and Access will report an invalid or ambiguous name. Prefix conventions such as txt, cbo, lst, cmd, and lbl are not required, but they keep names unique and make it obvious which control a piece of code refers to.

The VBA side: project name and VB_Name

If you want a namespace in the programming sense, the Visual Basic Editor gives you two related handles.

The project name. Open the VBA Editor with Alt+F11. In the Project Explorer, click the project node (the one labeled something like Database1 or your file name). Press F4 to open the Properties window. The Name field there is the project name, and it is the root of the fully qualified procedure reference in the form ProjectName.ModuleName.ProcedureName. Changing it separates your procedures from those in a referenced library with the same module names. It does not change the file name.

The module name and VB_Name. Each standard module, class module, form module, and report module has a name shown in the Project Explorer. That name is stored in the module's source as an attribute line:

You can see it by exporting the module (right-click the module, choose Export File) and opening the resulting .bas, .cls, or .frm file in a text editor. You generally should not edit the attribute line by hand unless you are moving code between projects, because the editor maintains it. Rename modules through the Properties window instead. A unique, descriptive module name such as modInvoiceRules is the practical equivalent of putting related procedures in their own namespace, and it reduces the chance of a public procedure name clash when you import code from elsewhere.

Optionally, you can add Option Private Module at the top of a standard module. This hides the module's procedures from the Macro dialog and from other projects that reference yours, while still allowing them to be called from within the same project. It is the closest Access offers to making a namespace private, and it is genuinely useful in shared databases.

Where the word "namespace" appears literally: XML

Access can export and import XML through External Data > Export > XML File and External Data > Import > XML File. The exported file begins with a root element carrying a namespace declaration, something like:

The od prefix refers to Microsoft's Office Data schema, and the generated schema file (.xsd) that Access produces alongside the XML declares the elements and types. If you are importing third-party XML, the Import XML dialog lets you choose an existing schema or have Access infer one, and elements are matched by their namespace-qualified names. This is the only context in which Access will show you a namespace in a dialog. It is a property of the XML document, not of your database objects, and you do not manage it from Design View.

Distinctions that cause most of the confusion

What you may be looking for Where it lives How to see or change it
Control or field name Name property on the Property Sheet Select object in Design View, press F4, edit Name
Form or report name Name property of the form or report itself Click the object's selector box in Design View, edit Name
VBA project name VBA Editor Properties window Alt+F11, click project node, F4
Module name / VB_Name Project Explorer, stored as an attribute Rename in the Properties window; inspect by exporting
Private procedures Standard module header Add Option Private Module
XML namespace Exported or imported XML file Managed in the XML and its schema, not in Access
Table or query name Navigation Pane Right-click, Rename

The most common mistake is expecting a single namespace declaration to resolve duplicate control names across different forms. It will not, because controls are already scoped to their form. Two forms can each have a txtTotal without conflict, and code on each form refers to its own. The reverse mistake is assuming names are globally unique. They are not: a public procedure in one standard module and a public procedure with the same name in another will collide when both are compiled, which is why deliberate module naming and, where appropriate, Option Private Module matter.

A second frequent confusion is the difference between the caption and the name of a control. The caption is what the user sees; the name is what code uses. Changing the caption in Design View does not change the name, and changing the name does not change the caption. If a label displays "Customer" but its Name is Label17, code must refer to Label17 unless you rename it.

Practical naming guidance

Give every control a name the moment you create it rather than accepting Text12 and Command5. Names should be short, use letters, digits, and underscores, avoid spaces (which force square brackets in expressions), and not begin with a digit. Keep them stable once code references them, and if you must rename, search the VBA project and any macros for the old name afterward. Name standard modules by purpose so that a fully qualified call reads clearly. For shared databases, consider Option Private Module in modules that are internal helpers, and reserve public, clearly named procedures for the interface other code should use.

Bottom line

You do not "get a namespace" in Access Design View because Access scopes names by object rather than by declared namespace. Open the object in Design View, select the control, field, form, or report, press F4, and read or edit the Name property; that is the identifier Access and your code use. For VBA, set uniqueness through the project name and module names in the Visual Basic Editor, and use Option Private Module when you want module members kept internal. The only literal namespace in Access belongs to exported and imported XML files. Once you know which of these you actually need, the steps are simple, and the naming discipline that follows will prevent most of the duplicate-name and broken-event problems that prompt the question in the first place.