Display file size (or other attributes) in textbox on form.

  • Thread starter Thread starter Craash.
  • Start date Start date
C

Craash.

Is there a method of retrieving the filesize of a known file (perhaps
the parent database) so that it may be displayed on a form or report?

Thank you,
 
Craash. said:
Is there a method of retrieving the filesize of a known file (perhaps
the parent database) so that it may be displayed on a form or report?

Sure. Look up the FileLen function in the VBA online help. For
example,

FileLen("C:\Temp\MyFile.txt")

will return the size in bytes of the file with that path and filename,
while

FileLen(CurrentDb.Name)

will return the size of the current database.
 
Back
Top