RunTime Error 380 - Specified Fieldname not found in object
I am running a VB6 application with a Pervasive V9.5 Database. I am receiving a RunTime Error 380 - Specified Fieldname not found in object when only 2 of my users are trying to log in. Rest of the office is fine...Does anyone have any idea what the issue could be? I have searched for a few hours now and can't find anything helpful.
The login uses a VAccess control during the login. Could this be caused by a missing DLL or OCX file on the client machine?
Any suggestions would be appreciated as I am out of ideas.
Edit:
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
I have enabled VADebug mode and on the workstation in question, when the app is launched I receive the DDF error:
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.
Then an error message:
ACBtr732 - Btrieve status = 170, B开发者_JAVA技巧rtrieve Opertation Code = 0, VAccessName = vaLogon, VALocation =
Then my login prompts for username and password and once the Login button is clicked is when the user receives the 380 Runtime.
The error 170 means "Database login required. Authentication to the database failed due to a wrong or missing username." Are you sure the Datapath variable has the proper path in it?
Can you connect to the database through the Pervasive Control Center? Does it require a user/password?
A corrupt DDF on the server would typically affect all users.
精彩评论