Solved

how to select deleted record from .dbf in ADO?

Posted on 2002-04-24
4
625 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

695 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