Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bypass deleted records

Status
Not open for further replies.

RichardBarth

Technical User
Dec 30, 2004
15
0
0
US
I've finally managed to access Foxpro tables with the OLEDB provider. Using the code:

dim Conn as new adodb.connection
dim rst as new adodb.recordset
conn.provider = "vfpoledb"
conn.open "c:\foxprodata"
rst.open "mytable", Conn, adOpenStatic, adLockOptimistic

The problem I'm having is that the recordset includes all records in the mytabl.dbf file, including all the deleted records. Is there any way I can either identify the deleted records in the recordset or avoid retrieving them?

Thanks for any help you can offer.
 
As said in the other thread:

oConn.Execute("SET DELETED ON")

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top