Solved

how to select deleted record from .dbf in ADO?

Posted on 2002-04-24
4
598 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Viewers will learn the different options available in the Backstage view in Excel 2013.

808 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