P
Pietro
Hi,
I have a probem that my database canot be compacted and repaired while
it's being used by users,so i'm trying to write the below code on the on time
event to do compact and repair at 2:30 am when all users had already closed
the application,but i get a message that says that i cannot compact and
repair my database through a VB code or through a macro,instead i should go
to toos>dtabase utilities...ecc. do suggest something?
If Time() > "2:30:00 AM" And Time() < "2:30:06 AM" Then
DoCmd.RunCommand acCmdCompactDatabase
End If
I have a probem that my database canot be compacted and repaired while
it's being used by users,so i'm trying to write the below code on the on time
event to do compact and repair at 2:30 am when all users had already closed
the application,but i get a message that says that i cannot compact and
repair my database through a VB code or through a macro,instead i should go
to toos>dtabase utilities...ecc. do suggest something?
If Time() > "2:30:00 AM" And Time() < "2:30:06 AM" Then
DoCmd.RunCommand acCmdCompactDatabase
End If