G
Guest
I am attempting to run a query to return the size of a file.
When I use this code in a colum of a query : vba.FileSystem.FileLen([fileLoc])
I receive an error "Undefined function......bla.....bla....bla."
I have checked for missing function in the Tools_References and, all is O.K.
I can run the method from the VBA immediate window with the code:
?vba.FileSystem.FileLen("\\COMP-AP-x\Inetpub\Ftproot\Files\Orphaned\1\00\00\27\00002778.pdf")
The above works fine and returns the correct file size value.
Why cant I run this method from a Query??? I could do it before on anotehr
PC. Its really baffling me at present.
Please help.
When I use this code in a colum of a query : vba.FileSystem.FileLen([fileLoc])
I receive an error "Undefined function......bla.....bla....bla."
I have checked for missing function in the Tools_References and, all is O.K.
I can run the method from the VBA immediate window with the code:
?vba.FileSystem.FileLen("\\COMP-AP-x\Inetpub\Ftproot\Files\Orphaned\1\00\00\27\00002778.pdf")
The above works fine and returns the correct file size value.
Why cant I run this method from a Query??? I could do it before on anotehr
PC. Its really baffling me at present.
Please help.