Create a MDE file using VBA

J

jj

Hi ng

I use the following code to create a MDE file from vba. I have office 2003,
but the database is build in Access 2000. It works fine on my computer. But
when I run the code on a machine with Access 2000 - it does not work - any
ideas?

TIA
jj

The code:
Function CreateMDEDatabase(strDB As Variant)
Dim a As New Access.Application
Dim strMDE As String

strMDE = Left(strDB, Len(strDB) - 3) & "mde"

a.SysCmd 603, strDB, strMDE
Set a = Nothing

End Function
 

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