Microsoft
Software
Hardware
Network
Question : Create MDE from MDB hangs
This code used to work, but now it seems to hang on the indicated line:
Public Function CreateMDE()
Dim NAcc As Access.Application
Set NAcc = New Access.Application
NAcc.SysCmd 603, "Z:\MyPath\MyFile.mdb", "Z:\MyPath\MyFile.mde" '<<<<<<< program hangs here
Application.Quit acQuitSaveNone ' close the current database
End Function
I don't know how to troubleshoot this issue. Any ideas? Thank you.
Answer : Create MDE from MDB hangs
Does SysCmd 603 actually make an MDE from an MDB ?
If so, try this full procedure on the mdb *before* you run your code ... just to be sure the mdb is 'clean':
A **DeCompile** may help here ...
But first, if you have not already:
Check for any **Missing References via the VBA Editor>>Tools>>References ....
Then, follow this procedure:
0) **Backup your MDB**
1) Compact and Repair the MDB, as follows:
Hold down the Shift key and open the MDB, then from the menu >>Tools>>Database Utilities>>Compact and Repair ...
2) Execute the Decompile (See example syntax below) >> after which, your database will reopen.
3) Close the mdb
4) Open the mdb and do a Compact and Repair (#1 above).
5) Open the mdb:
a) Right click over a 'blank' area of the database window (container) and select Visual Basic Editor. A new window will open with the title 'Microsoft Visual Basic' ... followed by then name of your MDB.
b) From the VBA Editor Menu at the top of the window:
>>Debug>>Compile
Note ... after the word Compile ...you will see the name of your 'Project' - just an fyi.
6) Close the mdb
7) Compact and Repair one more time.
*** Executing the DeCompile **EXAMPLE**:
Here is an **example** of the command line syntax (be SURE to adjust your path and file name accordingly) for executing the decompile:
Run this from Start>>Run, enter the following command line - **all on one line** - it may appear like two lines here in the post:
Also, the double quotes are required.
"C:\Program Files\Microsoft Office\Office\Msaccess.exe
" /decompile "C:\Access2003Clients\Your
MdbNameHER
E.mdb"
For more detail on the Decompile subject ... visit the Master on the subject (and other great stuff) Michael Kaplan:
http://www.trigeminal.com/
usenet/use
net004.asp
?1033
mx
Random Solutions
I am trying to get the "Currently" selected item in a multiple selection listbox - how can this be done?
SQL DISTINCT Problem
Excel Macro to Compare Cells and Edit the Workbook
There is insufficient system memory in resource pool 'internal' to run this query. WE upgraded from a 32 bit, 4 GB, Windows 2003 server, SQL server 2005 machine to a 64 bit, 2 processor quad core, 8
Windows Server 2003 SP2 can't see 5.4 terabyte array
user can not login after the complete restore of AD
Explorer.EXE - Unable To Locate Component
SBS 2008 Disk Full
Simulate keyboard command in batch file
Handling Images in Silverlight