简体   繁体   English

如何使用Pervasive客户端修复Access数据库,该数据库在升级到Access 2016后会中断?

[英]How do I fix an Access database using Pervasive client that breaks after upgrading to Access 2016?

Have a client that upgraded all of their machines to Access 2016. Before, they had a mixture of older Access versions. 有一个客户端已将所有计算机升级到Access2016。以前,他们混合使用了较旧的Access版本。 The access databases they use have an ODBC connection to a Pervasive database. 他们使用的访问数据库具有到Pervasive数据库的ODBC连接。 I don't know anything more about Pervasive. 我对Pervasive一无所知。 I know in the past when they've had a single machine go to Access 2016 or from older versions of Windows to Windows 2010 and I've had to re-link tables. 我知道过去,当他们只有一台计算机访问Access 2016或从旧版Windows到Windows 2010时,我不得不重新链接表。

Right now, they're getting this error: 现在,他们收到此错误:

ODBC-call failed [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Invalid date, time or timestamp value. ODBC调用失败[Pervasive] [ODBC客户端接口] [LNA] [Pervasive] [ODBC Engine接口]无效的日期,时间或时间戳记值。 (#0) (#0)

I need some suggestions on how to fix this for all machines and all Access applications. 我需要一些有关如何针对所有计算机和所有Access应用程序解决此问题的建议。

** UPDATE ** The problem was a missing Active X calendar control. **更新**问题是缺少Active X日历控件。 I changed all the date controls on the form to be text boxes to take advantage of the new Access calendar pop-up. 我将窗体上的所有日期控件更改为文本框,以利用新的Access日历弹出窗口。 The problem now is that the client has dozens of Access database. 现在的问题是,客户端有数十个Access数据库。 As far as I know, I'd have to open each file and each form in the file and change the controls one at a time. 据我所知,我将不得不打开文件中的每个文件和每个表单,并一次更改一个控件。 Anyone know of a way to update multiple Access file without having to touch them all? 有人知道一种无需触摸所有文件即可更新多个Access文件的方法吗?

The calendar control will still work with Access2016. 日历控件仍可与Access2016一起使用。 If you've got loads of databases it's probably quicker to re-install the calendar control. 如果您有大量的数据库,则重新安装日历控件的速度可能会更快。

You will need the MSCAL.OCX file which you can download. 您将需要可以下载的MSCAL.OCX文件。 Copy the MSCAL.OCX file to c:\\windows\\sysWOW64 not c:\\windows\\system32. 将MSCAL.OCX文件复制到c:\\ windows \\ sysWOW64而不是c:\\ windows \\ system32。 Register it by running from the command prompt or run in the start menu 通过从命令提示符运行或在开始菜单中运行进行注册

regsvr32 c:\windows\sysWOW64\MSCAL.ocx 

and it should register OK but make sure that you run regsvr32 with administrator privileges. 并且它应该注册确定,但请确保您以管理员权限运行regsvr32。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM