Results 1 to 4 of 4
  1. #1
    jimbuch920 is offline Novice
    Windows 7 64bit Access 2002
    Join Date
    Sep 2013
    Posts
    2

    getting file attribues


    I want to import a tab delimited file (no date in the file) into a table no problem. After I have imported the file, I want to update a date field field in the table with the files creation or modified date/time.
    Ex: The file might be created on 09-01-2013 but it would not be imported until 09-04-2013. So the date in the table should be 09-01-2013

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Add field to table and run an UPDATE sql action.
    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.

  3. #3
    jimbuch920 is offline Novice
    Windows 7 64bit Access 2002
    Join Date
    Sep 2013
    Posts
    2
    I know update queries.. I guess I didn't make myself clear enough. I'll be using a form to import a tab delimited file which does not have any dates in it. After I import I'll run an update query to update the empty date field with the creation or modified date of the imput file. I don't want to use the 'Now()' in the update query since the input file may be created a few days prior. I really don't want to manually enter the date (manual intervention is subject to human error). Is the any code that I could use to get this date information from the file? Is this possible? This info is somewhere, all I need is retrieve it.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    There is a 'date edited' property of files but don't see how that will serve your needs. Unless the date is part of the file name or embedded somewhere in the text, I expect you (user) will have to provide the date.
    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. Importing file directly from a Sharepoint file (not list)
    By jstoler in forum Import/Export Data
    Replies: 1
    Last Post: 06-28-2013, 01:44 PM
  2. Import Excel file based on a date and time in file name
    By nhylan in forum Import/Export Data
    Replies: 4
    Last Post: 04-16-2013, 03:26 PM
  3. Replies: 2
    Last Post: 12-27-2012, 09:37 AM
  4. Replies: 10
    Last Post: 03-04-2012, 12:17 AM
  5. Replies: 1
    Last Post: 09-27-2010, 10:10 AM

Tags for this Thread

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