I've got a small database that accepts customer data on a form, the salesman hits "calculate" and a VBA process updates a 1-record database with the key info, then the VBA runs two queries that do the calculations and update the table, finally the calculations are displayed on the original form. The key-entry database has a dummy primary key that is always "1" and the second field is the key to the prospect database. I was doing a make-table to shove the prospect key into a table, but I was concerned that everytime you delete a database Access fails to reclaim the space.
This all works fine (i.e., it is fast and the the data displayed on the form is correct), but after compacting the database it is 328k, after the first time you hit "calculate" it is 680k and every time you hit calculate after that it grows by 4K. If you compact the database after 100 calculations (and no new records added) it goes back to 328k.
Could the VBA be generating a new copy every time it is called? If so is there a TSR equivilent in VBA or Access?
This all works fine (i.e., it is fast and the the data displayed on the form is correct), but after compacting the database it is 328k, after the first time you hit "calculate" it is 680k and every time you hit calculate after that it grows by 4K. If you compact the database after 100 calculations (and no new records added) it goes back to 328k.
Could the VBA be generating a new copy every time it is called? If so is there a TSR equivilent in VBA or Access?