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 / Forms / December 2007

Tip: Looking for answers? Try searching our database.

File Rename from From

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Lopez - 27 Dec 2007 16:45 GMT
My boss has given me a scanning project where I am scanning many pages worth
of information.  However, each page needs to be its own seperate scan.
After doing a giant batch scan, I am saving each scan under their
identifiable ID number.  However, I also need to add the general ID number
to the file name.

So, I have created a query (that each scan is based off of in the first
place) that shows the name of each scan file as named during the seperation
process.  But, I am needing to change that name to the new name.  In the
query there is a field of OldName and NewName.  Is there a script that I can
program into a button that will allow the name to change from the old to the
new?

One batch scan can yield 20-30 individual scans.  Do the renaming by hand
would be a pain.  Not to mention massive carpal tunnel.

Is there anything that can be used to assist in this.

Jason Lopez
Albert D. Kallal - 27 Dec 2007 18:01 GMT
There is a built in command called "name" that will do as you ask

eg:

name "oldfile" as "newfile"

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

Jason Lopez - 27 Dec 2007 19:04 GMT
Okay.  I tried looking for it.  I tried in the VB Code screen to search for
"name" and I got a bunch of results.  But, what exactly should I be looking
for?  Everything that I find is talking about renaming objects in the
database.  I am looking to rename files that are not part of the database
but exist in a folder outside the database.

Jason

> There is a built in command called "name" that will do as you ask
>
> eg:
>
> name "oldfile" as "newfile"
Jason Lopez - 27 Dec 2007 21:15 GMT
I found a command that works.

Jason

> Okay.  I tried looking for it.  I tried in the VB Code screen to search
> for "name" and I got a bunch of results.  But, what exactly should I be
[quoted text clipped - 9 lines]
>>
>> name "oldfile" as "newfile"
 
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.