Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post DB File size....

Status
Not open for further replies.

Dodge

IS-IT--Management
Jun 14, 2001
25
US
Help...I'm want to display the .mdb file size in a label.
Any thoughts?

Thanks
Dodge
 
Use the FileSystemObject
Code:
Dim objFs as scripting.FileSystemObject
Dim objFile as scripting.File
Set objfs = CreateObject("Scripting.FileSystemObject")
Set objFile = objFS.GetFile(strPathandFileName) 
    ... = objFile.Size
    ... = objfile.DateCreated
    ... = objFile.DateModified
    ... = objFile.DateLastAccessed

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top