Solved

how to select deleted record from .dbf in ADO?

Posted on 2002-04-24
4
590 Views
Last Modified: 2013-11-24
in DAO *.INI file:
[dBase ISAM]
Deleted=Off
but i don't know in ADO?


0
Comment
Question by:senucarthur
  • 3
4 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 80 total points
ID: 6967949
It would normally be a case of including "Deleted=0;" in your ADO connection string. For example:

Dim cnnDBase As ADODB.Connection
Set cnnDBase = New ADODB.Connection
cnnDBase.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=CollatingSequence=ASCII;DefaultDir=C:\Program Files\Microsoft Visual Studio\VB98;Deleted=0;Driver={Microsoft dBase Driver (*.dbf)};DriverId=533;FIL=dBase 5.0;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=600;SafeTransactions=0;Statistics=0;Threads=3;UID=admin;UserCommitSync=Yes;Initial Catalog=C:\Program Files\Microsoft Visual Studio\VB98
"
0
 

Author Comment

by:senucarthur
ID: 6970223
that's nice,thank you.
for more question:
how can I import .DBF data including deleted records into access?
now I insert the records into table one by one.this is not good.
help me,please.
0
 

Author Comment

by:senucarthur
ID: 6970234
please tell me where is any document like above ConnectionString's parameters.
0
 

Author Comment

by:senucarthur
ID: 6970611
I know the query in access:
select * into test from [dBase IV;DataBase=C:\test].test.dbf.
but in the table there are not any deleted records of .DBF file.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This collection of functions covers all the normal rounding methods of just about any numeric value.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.

920 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