Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

Looking at properties of a file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 10 Jan 2006 19:03 GMT
Hello all,

I have a trigger program (access) that monitors a folder.  When a file is in
this folder I do some processing with the data then move the file.  
My problem is, if the file has no data I would like to not do anything with
it.
Question is how do I look at a files property and see if it's "K"
value(size) is greater then "0"?  

MyPath = "c:\data\export\put\*.rcv"
MyName = Dir(MyPath, vbDirectory)

If MyName <> "" Then

   Call Shell("c:\data\program\f2mPut.bat")
   
End If
Marshall Barton - 10 Jan 2006 20:13 GMT
>I have a trigger program (access) that monitors a folder.  When a file is in
>this folder I do some processing with the data then move the file.  
[quoted text clipped - 11 lines]
>    
>End If

You can use the FileLen function to see if the file contains
anyting.

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.