Link to home
Start Free TrialLog in
Avatar of Dany_mx
Dany_mx

asked on

VB conduit Help!!!


  My questio is simple, in my conduit when i try to open a database vb show a the follow error.

-2147024770 : Error de Automatización

  Heres is the vb code

On Error GoTo Err
Dim FileNum As Integer
Dim FirstTime As Boolean
 
Dim pDbQuery As New PDDatabaseQuery
Dim pDataSampleDB As PDRecordAdapter

' Declare the record header and data
Dim nIndex As Long
Dim vUniqueId As Variant
Dim nCategory As Long
Dim eAttributes As ERecordAttributes
Dim vData As Variant

Dim CurrRec As tAFSampleTableRecord
Dim RecOffset As Long

  FileNum = FreeFile
  Open App.Path & "\AFDataSample.txt" For Output As #FileNum
 
 'The follow line make the error  
Set pDataSampleDB = pDbQuery.OpenRecordDatabase("AFSampleTable", "PDDirect.PDRecordAdapter", eRead Or eWrite)

any idea?
 
Avatar of Mikal613
Mikal613
Flag of United States of America image

Dim pDataSampleDB As New PDRecordAdapter
Avatar of Dany_mx
Dany_mx

ASKER

I found the problem, i just change the type of proyect form activex dll to activex exe

ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial