1

我正在运行一个带有 Pervasive V9.5 数据库的 VB6 应用程序。我收到一个运行时错误 380 - 当我的只有 2 个用户尝试登录时,在对象中找不到指定的字段名。办公室的其他人都很好......有人知道问题可能是什么吗?我已经搜索了几个小时,找不到任何有用的东西。

登录在登录期间使用 VAccess 控件。这可能是由于客户端计算机上缺少 DLL 或 OCX 文件造成的吗?

任何建议将不胜感激,因为我没有想法。

编辑:

With vaLogon
    .RefreshLocations = True
    .DdfPath = DataPath
    .TableName = "USERLOG"
    .Location = "USERLOG.MKD"
    .Open
    If .Status <> 0 Then
        ErrMsg = "Error Opening File " + .TableName + " - Status " + str$(.Status) + vbCrLf + "Contact IT Department"
    End If
End With

我已启用 VADebug 模式,并且在相关工作站上,当应用程序启动时,我收到 DDF 错误:

The VAccess control was unable to open FIELD.DDF at the specified DDFpath. This may result from an error in the DDFPath or refreshlocations properties, or from a corrupt FIELD.DDF.

然后是一条错误消息:

ACBtr732 - Btrieve status = 170, Brtrieve Opertation Code = 0, VAccessName = vaLogon, VALocation = 

然后我的登录提示输入用户名和密码,一旦单击登录按钮,用户就会收到 380 运行时。

4

1 回答 1

1

错误 170 的意思是“需要数据库登录。由于用户名错误或丢失,对数据库的身份验证失败。” 您确定 Datapath 变量中有正确的路径吗?

您可以通过 Pervasive Control Center 连接到数据库吗?它需要用户/密码吗?

服务器上损坏的 DDF 通常会影响所有用户。

于 2011-04-14T00:07:23.123 回答