borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to restore a database)Next Topic (Help with VB coding of ODBC driver build.) New Topic New Poll Post Reply
AndreaVB Forum : Database : HELP: Is There AnyWay To Pack DBF Tables From ADO?
Poster Message
esthrim
Level: Protégé

Registered: 01-03-2005
Posts: 7

icon HELP: Is There AnyWay To Pack DBF Tables From ADO?

Hi all
i'm having DBF Tables as my datasource with ADO,
my problem is when i'm deleting the records.... they are not actually deleted but only have marks on the records..
the only way is to PACK the table, but  i don't know, is there anyway to PACK it from ADO?




thanks alot
eshtrim

12-07-2005 at 03:20 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: HELP: Is There AnyWay To Pack DBF Tables From ADO?

why dont you convert them to mdb? If  you cant, you would probably need to search for mdb<->dbf convertor, if it exist.

____________________________
If you find the answer helpful, please mark this topic as solved.

14-07-2005 at 03:40 PM
View Profile Send Email to User Show All Posts | Quote Reply
esthrim
Level: Protégé

Registered: 01-03-2005
Posts: 7
icon Re: HELP: Is There AnyWay To Pack DBF Tables From ADO?

hi goran, thx for answering
i already found a way.....
i can pack database from executing command from the connection.execute "PACK x.dbf"
but u must disconnnect the connection first.

with CN
     if .state = adstateopen then .close
     .open
     .execute "PACK x.dbf"
end with

note: i'm connecting my connection with "Provider=VFPOLEDB.1;"

thx

19-07-2005 at 04:16 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : HELP: Is There AnyWay To Pack DBF Tables From ADO?
Previous Topic (How to restore a database)Next Topic (Help with VB coding of ODBC driver build.) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder