Hoping that someone help me...
I would like to compact database in the middle of running a code in VBA.
Is it possible to compact dtb using VBA under the same Access database?
For example:
sub t()
For i = 1 To 999
DoCmd.RunSQL "blabla"
Next
' ! here I would like to put a code to compact the database
For i = 1000 To 9999
DoCmd.RunSQL "blabla"
Next
End sub
I would like to compact database in the middle of running a code in VBA.
Is it possible to compact dtb using VBA under the same Access database?
For example:
sub t()
For i = 1 To 999
DoCmd.RunSQL "blabla"
Next
' ! here I would like to put a code to compact the database
For i = 1000 To 9999
DoCmd.RunSQL "blabla"
Next
End sub