Ok, I've tried to summarise my dilemma in the title, but I've thought of a few ways I might achieve it, I'm just not sure how to go about any of them, or which might be the correct one.
I'm running Access 2003, which is set to create 2000 format databases by default. What I want to do, is create a new mdb file, copy some tables, etc, and convert the new mdb into an mde file.
I've managed everything, but the final conversion, and when I try to manually convert the file, I'm told it needs to be in Access 2002/03 format before I can create an mde.
So, here are the possible solutions I've come up with:
1. Before creating the new mdb, change the default file format to Access 2003. This sounds like the worst solution, because I can't say what versions it will be running on in the future, and I presume if I change the setting, I'd be changing the setting for that copy of Access?
2. Create the new mdb in the correct format.
I'm using this -
Set db = ws.CreateDatabase(strFilename, dbLangGeneral)
to create the new mdb. I see I can add dbVersionXX on the end of that, but I can't find the correct value of XX to save it as a 2003 file.
3. Save it as the default fileformat, then convert to 2003 if necessary, but I don't know how to do this in vba.
2 seems to be the best bet, if there's a way to do it like that. Otherwise, I'd welcome any other suggestions.
I'm running Access 2003, which is set to create 2000 format databases by default. What I want to do, is create a new mdb file, copy some tables, etc, and convert the new mdb into an mde file.
I've managed everything, but the final conversion, and when I try to manually convert the file, I'm told it needs to be in Access 2002/03 format before I can create an mde.
So, here are the possible solutions I've come up with:
1. Before creating the new mdb, change the default file format to Access 2003. This sounds like the worst solution, because I can't say what versions it will be running on in the future, and I presume if I change the setting, I'd be changing the setting for that copy of Access?
2. Create the new mdb in the correct format.
I'm using this -
Set db = ws.CreateDatabase(strFilename, dbLangGeneral)
to create the new mdb. I see I can add dbVersionXX on the end of that, but I can't find the correct value of XX to save it as a 2003 file.
3. Save it as the default fileformat, then convert to 2003 if necessary, but I don't know how to do this in vba.
2 seems to be the best bet, if there's a way to do it like that. Otherwise, I'd welcome any other suggestions.