I work with an old application that still needs databases in the access 2000 format.
The current version (365) has a way to 'Save As' Access 2000 format (mdb).
Anyone know the vba code to emulate this?
Thanks in advance.
I work with an old application that still needs databases in the access 2000 format.
The current version (365) has a way to 'Save As' Access 2000 format (mdb).
Anyone know the vba code to emulate this?
Thanks in advance.
maybe post 13 here
https://www.access-programmers.co.uk.../#post-1748910
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
See this please:
https://stackoverflow.com/questions/...ccdb-using-vba
Cheers,
Looks like that is accdb to mdb, houwever it lead me to this command, 'AcFileFormat.acFileFormatAccess2007', which can be used with .acFileFormatAccess2000 instead. I will try this out. Thanks!
Post 4 was moderated, I'm posting to trigger email notifications.
how to convert ms access .mdb to .accdb using VBA
Edit: I tried it on one of my still mdb files and it complained that the file had already been converted.? Tried another twice with no complaint.?Code:src = [COLOR=var(--highlight-variable)]"c:\csnet\file.mdb"[/COLOR] dst = [COLOR=var(--highlight-variable)]"c:\csnet\file.accdb"[/COLOR] ConvertAccessProject src, dst, AcFileFormat.acFileFormatAccess2007
I *think* the first one I had saved manually as an accdb?
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
Worked like a charm. The fun part about this is that I was doing this from Visio. Thanks!!
Code:Dim acc As Object Set acc = CreateObject("Access.application") acc.ConvertAccessProject "SourcePath", "DestPath", 9 'AcFileFormat.acFileFormatAccess2000 have to hard code the number since we are in visio acc.Quit