arquette2
asked on
Compacting work tables in vb
I am using access tables as work tables in VB6.
I am deleting records. Each time I run the program the DB gets larger by about 2MB. I do not want to have to have Access on the users machine so how do I compact the database so as to keep it from getting too big. I have used Access tables with VB6 apps before without having Access on the user machine but I did not notice this increase in the DB size.
I have tried dropping tables and then creating them when needed but this makes no difference.
Have the experts any ideas
Thanks
I am deleting records. Each time I run the program the DB gets larger by about 2MB. I do not want to have to have Access on the users machine so how do I compact the database so as to keep it from getting too big. I have used Access tables with VB6 apps before without having Access on the user machine but I did not notice this increase in the DB size.
I have tried dropping tables and then creating them when needed but this makes no difference.
Have the experts any ideas
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi arguette2, firstly glad can help you. and please pay tribute to TimCottee, one of the Expert in the Top 15 list. I get this code from what he posted earlier.
Then as compacting database, you can use DAO to do it so, find more about compact database in those VB website that may help. : )
Then as compacting database, you can use DAO to do it so, find more about compact database in those VB website that may help. : )
ASKER
Your answer works a treat.
I tried the free code but it did not work for some reason.
arquette2