G
GPO
Access 2000
I want my database to check it's own size (say with an on-
click event associated with a cmd button). If it is over a
certain size, it want a msgBox to notify the user that
they should compact and repair (via the normal menu
selections). The database is designed to only ever hold
data temporarily. It imports text, checks it for certain
features, and then prepares a report for the user. The
data is then deleted. This means that after several runs
it attains a pretty hefty size. It compacts on close which
is a partial solution, but prolonged use without closing
might be a problem. It would be good to warn the users
before they run their data through, that the database is
starting to be a bit swollen.
In other words (pseudocode),
Private Sub cmdRunDataChecks_click()
FileSize = GetFileSize() 'I don't get this bit...
If FileSize > 50mb then
msgBox "Database should be compacted..."
Else
'continue with normal processes
End If
End Sub
Regards
GPO
I want my database to check it's own size (say with an on-
click event associated with a cmd button). If it is over a
certain size, it want a msgBox to notify the user that
they should compact and repair (via the normal menu
selections). The database is designed to only ever hold
data temporarily. It imports text, checks it for certain
features, and then prepares a report for the user. The
data is then deleted. This means that after several runs
it attains a pretty hefty size. It compacts on close which
is a partial solution, but prolonged use without closing
might be a problem. It would be good to warn the users
before they run their data through, that the database is
starting to be a bit swollen.
In other words (pseudocode),
Private Sub cmdRunDataChecks_click()
FileSize = GetFileSize() 'I don't get this bit...
If FileSize > 50mb then
msgBox "Database should be compacted..."
Else
'continue with normal processes
End If
End Sub
Regards
GPO