Results 1 to 2 of 2
  1. #1
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Change Name of File with todays Date

    We are getting in files from a vendor that come in with today's date and different extensions and prefixes such as BA0003.20121217.pdf or MYLOOKUP.20121217.psv where the only constant is the date, there are over 100 files that I need to change the date part to today's date. I would like to find all the data before the first period and all the data after the last period and replace the date part with todays date.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Left("BA0003.20121217.pdf",InStr("BA0003.20121217. pdf",".")) & Format(Date(),"yyyymmdd") & Right("BA0003.20121217.pdf",4)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 03-19-2012, 04:29 PM
  2. Replies: 1
    Last Post: 12-12-2011, 06:32 AM
  3. If statement with Todays Date being criteria
    By robsworld78 in forum Access
    Replies: 2
    Last Post: 08-19-2011, 08:22 PM
  4. Update with Todays Date on Open
    By anoob in forum Forms
    Replies: 5
    Last Post: 03-08-2011, 02:00 PM
  5. Adding todays date
    By EDEd in forum Forms
    Replies: 2
    Last Post: 10-08-2010, 06:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums