troubleshooting Question

vba to create a .accde file with 64-bit Access 2013

Avatar of Thomas
ThomasFlag for United States of America asked on
Microsoft AccessVBA
9 Comments2 Solutions500 ViewsLast Modified:
I successfully use the following code for 32-bit Access:

Public Function ConvertToAccde(SourceDB As String, TargetDB As String) As Boolean
    Dim accessApplication As Access.Application
   
    ConvertToAccde = False
    Set accessApplication = New Access.Application
    With accessApplication
        .SysCmd 603, SourceDB, TargetDB
    End With
    ConvertToAccde = True
    Set accessApplication = Nothing
Exit Function

However, this code does not work for 64-bit Access 2013. It hangs on the .SysCmd line and never exits.

Suggestions please.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros