Problem to create a MDE-file

G

Guest

Hi,
I have a working Access VBA application that I want to create a MDE-file
from. When I do so Access returns a message that says: "Table
TempMSysAccessObjects already exist". No MDE-file is created!
How do I overcome this problem? VBA-code is in Access 2000-format and I use
Access 2000 when I try to make the MED-file.

Any help is appreciated.
 
G

Guest

Here is some code I use before compacting and repairing a database on
closing. I use it right before the "DoCmd.Quit" command. It deletes
TempMSysAccessObjects table if it exists, and prevents the "Table
TempMSysAccessObjects already exists" error.

Dim objtbl As AccessObject
For Each objtbl In Application.CurrentData.AllTables
If objtbl.Name = "TempMSysAccessObjects" Then
DoCmd.DeleteObject acTable, objtbl.Name
End If
Next objtbl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top