Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access

ResolvedVersion 2000

Nick has attended:
Access Intermediate course
Access VBA course
Access Advanced course

Access 2000

Hello,
Is it possible to have Access automatically compact and repair a database.

RE: Access 2000

Hi Nick

Thank you for your question

It is possible to write a VBA procedure that will compact and repair the database. This uses the CompactRepair method of the application object.

Its use is fairly complex and a detailed description is beyond the scope of the forum. While it is not specifically covered on the VBA Access course, you will acquire the skills required to interpret and apply it.

For the moment further information can be gained by typing CompactRepair into the VBE help box

Regards

Stephen

Tue 31 Mar 2009: Automatically marked as resolved.

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.