ACC: .MDB File Extension Automatically Added to Database NameID: Q164789
|
Novice: Requires knowledge of the user interface on single-user computers.
When you create a new database, Microsoft Access automatically adds the
.mdb file extension to the database name, even if you type your own file
extension in the File Name box.
This applies to all dialog boxes in Microsoft Access where you specify a
database name, for example when you create a new database, compact a
database, or create a replica database.
This behavior is exhibited in all applications that use the common dialog box in Microsoft Windows 95 and later or Microsoft Windows NT version 4.0.
There are two ways you can save a database with a file name extension other than .mdb.
This behavior is by design.
When you save a database file, Microsoft Access compares the name you type
in the File Name box with the type of file you select in the Save As Type
box. If your file name does not include an extension, or the extension you
type does not match the type of file you select, Microsoft Access
automatically appends an extension for you.
The following table shows examples of how Microsoft Access names a
database file depending on what you type in the File Name box and what you
select in the Save As Type box:
File Name Box Save As Type Box Database File Name
-----------------------------------------------------------------------
MyDB Microsoft Access Databases (*.mdb) MyDB.mdb
MyDB.mdb Microsoft Access Databases (*.mdb) MyDB.mdb
MyDB.mdw Microsoft Access Databases (*.mdb) MyDB.mdw.mdb
MyDB.mde Workgroup Files (*.mdw) MyDB.mde.mdw
MyDB.mdw Workgroup Files (*.mdw) MyDB.mdw
MyDB.mde All Files (*.*) MyDB.mde
"MyDB.mde" Microsoft Access Databases (*.mdb) MyDB.mde
For more information about .mda files, search the Help Index for "mda
files."
For more information about .mdw files, search the Help Index for
"workgroup information files," or ask the Microsoft Access 97 Office
Assistant.
For more information about .mde files, search the Help Index for "MDE
files," or ask the Microsoft Access 97 Office Assistant.
For more information about the common dialog box in Microsoft Windows 95
and later or Microsoft Windows NT version 4.0, please see the following
article in the Microsoft Knowledge Base:
Q125708 Applications Using Common Dialogs Append Default Extension
For more information about how this topic applies to other Microsoft
Office products, please see the following articles in the Microsoft
Knowledge Base:
Q131161 Default File Extension Added to Filename Using Save As
Q133342 File Type Option Changes Filename Within Quotation Marks
Keywords : kbusage GnlOthr RplGen UifOthr
Version : 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 19, 1999