Solved

VB conduit Help!!!

Posted on 2004-04-28
4
385 Views
Last Modified: 2007-12-19

  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?
 
0
Comment
Question by:Dany_mx
4 Comments
 
LVL 48

Expert Comment

by:Mikal613
Comment Utility
Dim pDataSampleDB As New PDRecordAdapter
0
 

Author Comment

by:Dany_mx
Comment Utility
I found the problem, i just change the type of proyect form activex dll to activex exe

0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When I was a beginner in Windows Mobile programming, even for small test I used to create a single MFC dialog-based application with one button, and put my test code in the OnLButtonDown method. For Pocket PC it worked fine, on some Windows CE d…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now