Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC and Windows2000

Status
Not open for further replies.

maggieb

IS-IT--Management
Jun 26, 2001
50
US
I recently installed new Windows 2000 workstations for all our users, we previously had Windows 95. We use Access97 databases linked to SQL server tables. I also link to Platinum (Btrieve) using a Pervasive ODBC driver. Since changing to Windows 2000 some of my Access modules are intermittently not working. for example, this code is used to link to a Platinum table:

Dim CommRS As Recordset
Dim WrkODBC As Workspace
Dim conAP As Connection
Dim rstSYID As Recordset
Dim constring As String
On Error GoTo ERRORCLOSE

constring = "ODBC;DATABASE=P:\Platinum\1;UID=maggie;PWD=maggie;PFW1

Set WrkODBC = CreateWorkspace("", UserName, "", dbUseODBC) 'name,user,password,type

Set conAP = WrkODBC.OpenConnection("", , , constring)

Set rstSYID = conAP.OpenRecordset("APNEXTSY", dbOpenDynamic, 0, dbOptimistic)
rstSYID.MoveLast

I don't use this kind of code everywhere I link, but in this case I am updating a field in the linked table and this seemed to be the only thing that worked at the time. Has anyone else had problems with this?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top