Results 1 to 4 of 4
  1. #1
    Amthyst826 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Location
    Fullerton, Ca
    Posts
    11

    Exporting date w/o time complicated

    I have a source excel file which I am pulling fields into my query to output as a text file
    The field names in the source excel file are different than my desired output
    Therefore, for example I have this in the Field of my query MOD DATE: Last Chg#

    The final resulting table is over 300k rows
    When I export it, I cannot leave the table layout and formatting on the file
    Access add 0:00:00 as time and it is totally messing up my end file



    I have been trying to figure out how to add Format([FieldName[,"mm/dd/yy") to the field expression but quite get it

    Suggestions??

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Not sure what you said, but if you want a field that has the date in it:
    Format([FieldName],"mm/dd/yy")

    (this works ONLY IF the field has a date in it)

  3. #3
    Amthyst826 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Location
    Fullerton, Ca
    Posts
    11
    The field displays correctly in Access mm/dd/yy
    I need to export the table, which is over 300,000 rows
    I can not export the table with formatting
    When I open my exported file, Access has appended 0:00:00:00 to the date
    mm/dd/yy 0:00:00:00
    Because of the formatting I am trying to achieve, the zero's are bumped to the next column, misaligning my data with my headers.
    I have "played" with the formatting of my table and with the formatting in the Make Table query I used to generate the table.
    If I could leave the table layout and formatting on my file, it would be fine. But I have too many rows of data being exported.

  4. #4
    Amthyst826 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Location
    Fullerton, Ca
    Posts
    11
    Can anyone offer some assistance on this one?
    Date fields formatted to mm/dd/yy are appending time to the field on export

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

Similar Threads

  1. Replies: 4
    Last Post: 04-21-2015, 07:12 PM
  2. Replies: 11
    Last Post: 07-20-2014, 06:22 PM
  3. Subtracting a date/time field from a number to get date/time
    By Lifeseeker1019 in forum Programming
    Replies: 4
    Last Post: 03-28-2014, 12:59 PM
  4. Replies: 1
    Last Post: 03-13-2014, 07:23 PM
  5. Complicated Query needs some date range help
    By KevinMCB in forum Queries
    Replies: 1
    Last Post: 01-11-2011, 12:25 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