Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Create a MDE file using VBA

Discussion in 'Information Technology' started by jj, Jul 28, 2006.

  1. jj

    jj
    Expand Collapse
    Guest

    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
     
  2. Loading...


  3. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    MDE's require being built in their own format. Although the default format
    of 2002/2003 is 2000, you must convert to the 2002/2003 format to build the
    MDE, which then won't run on an Access 2000 machine.
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "jj" <jj@get2net.dk> wrote in message
    news:uJ%23Jb0ImGHA.3468@TK2MSFTNGP03.phx.gbl...
    > 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
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page