Hey

using the connection below i can connect to a database located on our SQL Server.

when i change this connection to connect to a database on a SQLBase server it generates a runtime error. which states "multi-step oledb operating generated error. check each oledb status value. No work was done"

the code for the sqlbase server is located below the sql server connection

VB Code:
  1. 'SQL SERVER CONNECTION
  2. Private Sub Form_Load()
  3.     Set cn = New ADODB.Connection
  4.     Set rs = New ADODB.Recordset    'Create References and
  5.     Set ex = New Class1     'open database file
  6.  
  7.     cn.ConnectionString = "Provider=sqloledb;" & _
  8.                             "data source=vms2;" & _
  9.                             "Initial Catalog=ss638;" & _
  10.                             "uid=***;" & _
  11.                             "pwd=***"
  12.     cn.Open
  13.     ex.OpenRecordset rs, "PART", cn
  14.  
  15.     Set ex.ADORecordset = rs
  16.    
  17.     FileName
  18. End Sub

VB Code:
  1. 'SQLBASE CONNECTION
  2. Private Sub Form_Load()
  3.     Set cn = New ADODB.Connection
  4.     Set rs = New ADODB.Recordset    'Create References and
  5.     Set ex = New Class1     'open database file
  6.  
  7.     cn.ConnectionString = "Provider=sqlbaseoledb;" & _
  8.                             "data source=servergs;" & _
  9.                             "Initial Catalog=vmfg638;" & _
  10.                             "uid=***;" & _
  11.                             "pwd=***"
  12.     cn.Open
  13.     ex.OpenRecordset rs, "PART", cn
  14.  
  15.     Set ex.ADORecordset = rs
  16.    
  17.     FileName
  18. End Sub

can someone please tell me wat i am doing wrong...

cheers