michaelt196
New member
- Local time
- Today, 15:30
- Joined
- Mar 3, 2015
- Messages
- 2
Hello,
I have created a database that tracks the locations of all the faxes we receive in a day. We have a dedicated employee that enters them into the database as well as who they are assigned to and other pertinent information. At the end of the day, I monitor the network folders where the faxes are saved to change the status of the fax in the database to done, still needs processing, or awaiting approval. Is there any way that I could set up some VBA that would automatically update the status column for the record based on the location of the file? The file name is recorded in the database so then if it sees that that file is in the end folder it could automatically update the status to finished.
The response I got on another forum is as follows:
The impression I'm getting is that you've got a database of information over here.
And it lists the file name, but not location.
And then you have a physical folder structure with the fax files in it.
And there are folders for done, awaiting approval, or processing.
So what you're looking for is something to read those folders and update the status column based on which folder it is in?
So at the start of the day we have:
New
-Fax1.tiff
-Fax2.tiff
-Fax3.tiff
-Fax4.tiff
Finished
-
In progress
-
And at the end of the day the folders look like this:
New
-Fax1.tiff
Finished
-Fax3.tiff
-Fax4.tiff
In progress
-Fax2.tiff
And you want your code to browse those folders, and update the status of each filename based on it's folder?
If the filenames are unique, you can just use VBA to open the folder, create an array of the files and then set the status.
Create two separate functions, one for in progress, one for completed and call them one after the other.
There'd be no need to check the current status, but you could store the wrong status if a file is duplicated, or a filename repeated.
Does anyone know of anywhere that I could gather some information to get that started? I'll admit that VBA isn't my strongest skill. All of the file names of the faxes are unique so I assume I could just have a query that pulls everything that is still in processing, then I could run the VBA code to update those records?
Thanks
I have created a database that tracks the locations of all the faxes we receive in a day. We have a dedicated employee that enters them into the database as well as who they are assigned to and other pertinent information. At the end of the day, I monitor the network folders where the faxes are saved to change the status of the fax in the database to done, still needs processing, or awaiting approval. Is there any way that I could set up some VBA that would automatically update the status column for the record based on the location of the file? The file name is recorded in the database so then if it sees that that file is in the end folder it could automatically update the status to finished.
The response I got on another forum is as follows:
The impression I'm getting is that you've got a database of information over here.
And it lists the file name, but not location.
And then you have a physical folder structure with the fax files in it.
And there are folders for done, awaiting approval, or processing.
So what you're looking for is something to read those folders and update the status column based on which folder it is in?
So at the start of the day we have:
New
-Fax1.tiff
-Fax2.tiff
-Fax3.tiff
-Fax4.tiff
Finished
-
In progress
-
And at the end of the day the folders look like this:
New
-Fax1.tiff
Finished
-Fax3.tiff
-Fax4.tiff
In progress
-Fax2.tiff
And you want your code to browse those folders, and update the status of each filename based on it's folder?
If the filenames are unique, you can just use VBA to open the folder, create an array of the files and then set the status.
Create two separate functions, one for in progress, one for completed and call them one after the other.
There'd be no need to check the current status, but you could store the wrong status if a file is duplicated, or a filename repeated.
Does anyone know of anywhere that I could gather some information to get that started? I'll admit that VBA isn't my strongest skill. All of the file names of the faxes are unique so I assume I could just have a query that pulls everything that is still in processing, then I could run the VBA code to update those records?
Thanks