将Access 2010转换为旧版本 [英] Convert Access 2010 to older versions

查看:377
本文介绍了将Access 2010转换为旧版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够通过使用脚本将Access 2010数据库转换为多个不同的较早版本

I want to be able to convert a Access 2010 database to multiple different older version by using a script

因此,如果我向脚本提供2010 Access,我希望它吐出以下版本之一:2000、2002、2003或2007.

So if I feed a 2010 Access to the script I want it to spit out one of the following versions: 2000, 2002, 2003 or 2007.

这怎么可能?

我不是在寻找完整的脚本,而是寻找正确方向的指针,或者是如何完成脚本的示例.

I'm not looking for a complete script, but more a pointer in the right direction or perhaps an example of how it can be done.

*编辑*

TmpName = Destination & "\" & dbDisname & "_2002.mdb"
If Dir(TmpName) <> "" Then
   FS.deletefile TmpName
End If
objAccess.ConvertAccessProject strSourcePath & dbCurrent, TmpName, acFileFormatAccess2002
TextName = dbDisname & "_2002.mdb"
objAccess.Quit

问题是我收到运行时错误'52':文件名或数字错误"

Problem is that I get a "Run-time error '52': Bad file name or number"

但是路径正确吗?

  • strSourcePath& dbCurrent ="C:\ new.accdb"
  • TmpName ="C:\ new_2002.mdb"

推荐答案

您可以使用:

ConvertAccessProject "z:\docs\test.accdb", _
         "z:\docs\test.mdb", acFileFormatAccess2000

您可能会收到各种各样的错误消息,这些错误消息我都没有尝试解决,但是最终将获得Access 2000 mdb.其他格式可通过智能感知获得.

You are likely to get all sorts of error messages, which I have not attempted to sort out, but you will end up with an Access 2000 mdb. other formats are available through intellisense.

Microsoft参考:
文件格式
ConvertAccessProject
某些可能的问题

Microsoft references:
File format
ConvertAccessProject
Some possible problems

这篇关于将Access 2010转换为旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆