• VBA equivalent for the Convert to 97 format (XP SP2)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » VBA equivalent for the Convert to 97 format (XP SP2)

    Author
    Topic
    #380004

    Can anyone tell me what the RunCommand equivalent of the menu “Convert Database To 97 Format” and “Convert Database To 2000 Format” is please

    Viewing 0 reply threads
    Author
    Replies
    • #634765

      It takes a bit of fiddling, but if you search Access VBA Help for “ConvertAccessProject” it should give you the story. This is the example from it:

      Application.ConvertAccessProject _
      SourceFilename:=”C:My DocumentsSales-Access97.mdb”, _
      DestinationFilename:=”C:My DocumentsSales-Access2000.mdb”, _
      DestinationFileFormat:=acFileFormatAccess2000

      • #635141

        You’re a star Wendell clapping
        I’d not thought that ConvertProject would work on databases, I’d assumed it was ADP’s stupidme

        Can you help on my next question, how to convert to an MDE file question
        I’ve found the acCmdMakeMdeFile but can’t seem to pass in parameters
        – by the way is there any way to do a word search on the Access XP Help, rather than use the index question.

        Many many thanks

        • #635167

          Well, Help doesn’t help much with the DoCmd.RunCommand acCmdMakeMdeFile command. It appears you have to trick it to get it to work – a search of the MS knowledge base turned up article 202039 which uses SendKeys to generate the path and filename. A bit ugly – it looks like nobody has looked at this issue since Access 2000.

          As to Access XP Help, it frequently isn’t. You can do searches using the assistant, or you can use the “Answer Wizard” but neither will find the acCmdMakeMdeFile. Help has deteriorated significantly from what was available in Access 97.

          • #635178

            Wendell,

            thanks for trying – glad it wasn’t just me finding the Help, a bit of a non-Help. I’m going to a Microsoft UK focus group on “Access” next month, so I’ll certainly try and bring it up the lack of Help issue

            Poking around on the net found this on Google Groups

            > But just to automate the process further I'd like to automatically 
            > create the MDE when done.  But I haven't found any method of doing so.
            Totally unsupported, undocumented, and prone to strange issues, but try:
                SysCmd 603,  , 
            where  is the fully qualified path and name of the source database, 
            and  is the fully qualified path and name of the mde you want created, 
            such as:
                SysCmd 603, "c:myapp.mdb", "c:test.mde"
            -- 
            Dan Haught
            FMS Inc. http://www.fmsinc.com

            But while it works in Access 97, doesn’t seem to work in either Access 2000 or 2002 frown
            so I think it’ll have to be the SendKeys option, unless anyone knows the equivalent in 2000 and 2002 question

      • #635525

        Wendell,

        tried this with partially success.
        The 2002 to 2000 conversion worked fine smile
        The 2002 to 97 conversion didn’t frown
        – something weird happended to the forms, I could see them in the Forms tab, but couldn’t open them in either Design or Normal mode !!

        If it do the process manually, i.e. using the menu options, both 2000 and 97 versions are fine.

        I’ve tried using VBScript, using SendKeys with some success, but better is a freeware application, called AutoIt. This has excellent control of “Windows”, so e.g. it can wait until a specific Window is available, like a Open dialog. This avoids problems I was finding with VBScript where an unexpected window messed up the sequence

    Viewing 0 reply threads
    Reply To: VBA equivalent for the Convert to 97 format (XP SP2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: