Yes, just put compact and repair in the Access VB Editor Help (not the Access help) search field and it will give you an example.