Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 340413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:36:50+00:00 2026-05-12T10:36:50+00:00

I have a folder full of 100-odd Access97 files. I need to update them

  • 0

I have a folder full of 100-odd Access97 files. I need to update them all to Access2003.

I could do it manually, but using VBA would probably be a lot faster.

Does anyone that would have a snippet that would do this? Or an alternative suggestion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:36:50+00:00Added an answer on May 12, 2026 at 10:36 am

    DBEngine.CompactDatabase olddb, newdb,, dbVersion40
    should work.

    Note that you will want to check your references after words and do some cleanup. I used the following code in one my systems that I was working with in A97 and making an A2000 and A2002 MDB. The idea being that the conversion added a few references that I wanted to get rid of programmatically so I never had to worry about them. You’ll probably want to log the output to a .txt file named the same as the MDB and check things as you go along.

    Function tt_FixReferences() As Boolean
    
    Dim ref As Reference
    Dim stMsg As String, intPosn As Integer, strRefPathName As String, blnCompile As Boolean
    
    
        On Error GoTo tagError
        For Each ref In Access.References
            If ref.IsBroken Then
                 VBA.MsgBox "Ref" & ref.name & " is broken."
            Else
     '           Debug.Print ref.Name & ", " & ref.FullPath
                Select Case Access.SysCmd(acSysCmdAccessVer)
                Case 9#  ' Access 2000
                    If ref.name = "VBIDE" Then
                        strRefPathName = ref.FullPath
                        References.Remove ref
                        VBA.MsgBox strRefPathName & " removed."
                        blnCompile = True
                    End If
                Case 10# ' Access 2002
                    If ref.name = "VBIDE" Or ref.name = "OWC10" Then
                        strRefPathName = ref.FullPath
                        References.Remove ref
                        VBA.MsgBox strRefPathName & " removed."
                        blnCompile = True
                    End If
                End Select
            End If
        Next ref
        tt_FixReferences = True
        If blnCompile = True Then
            Call Access.SysCmd(504, 16483)
            MsgBox "Compiled."
        End If
    
    
    tagExit:
        Exit Function
    
    tagError:
        If err = 48 Then ' ?????
            If VBA.Len(VBA.Dir(ref.FullPath)) > 0 Then
                References.AddFromGuid ref.Guid, ref.Major, ref.Minor
                Resume Next
            Else
                stMsg = "Reference " & vbCrLf & "'" & ref.FullPath & "'" _
                        & vbCrLf & "couldn't be restored."
                VBA.MsgBox stMsg, vbCritical + vbOKOnly, _
                        "Error restoring references."
                tt_FixReferences = False
                Resume tagExit
            End If
        Else
            stMsg = "An unexpected error occurred." _
                & vbCrLf & "Number: " & err.Number _
                & vbCrLf & "Description: " & err.Description
            VBA.MsgBox stMsg, vbCritical + vbOKOnly, _
                "Error restoring references."
            tt_FixReferences = False
            Resume tagExit
        End If
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a folder full of Windows .URL files. I'd like to translate them
I have a folder full of script files. When I run them, a program
On my computer running Ubuntu, I have a folder full of hundreds files all
I have a folder full of text files. I need to append the same
I have a folder full of files and I want to search some string
I have a folder full of html files created for a Kindle ebook. The
I have a folder full of AIFF files that have a little gap at
I have a folder with full of dump files as dumpA.sql, dumpB.sql, etc. I
So I have a huge folder full subfolders with tons of files, and I
I have a folder full of zipped files (about 200). I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.