Results 1 to 6 of 6
  1. #1
    eladz949 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    9

    export query to fixed width text

    hello



    im trying to export a query to fixed width text.
    i have a field of short date and i need it to be 8 characters.
    im using the access export wizard and it adds spaces to the date so what happens is that the date is cut, for example 24/10/2010 is shown as 24 10.
    how can i fix this????

    thanks!!!!!!!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would use a query and the Format() function to get the value in the format you want. Format([YourdateField],"ddmmyyyy")

  3. #3
    eladz949 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    9
    thanks a lot for the fast reply!

    where exactly do i put this format function?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    In the query as a new field. NewDateField: Format([YourdateField],"ddmmyyyy")

  5. #5
    eladz949 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    9
    it did the trick, many thanks

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Thanks for posting back with your success. Happy New Year!

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

Similar Threads

  1. Convert number to fixed length text field
    By tpcervelo in forum Queries
    Replies: 1
    Last Post: 08-02-2010, 07:26 PM
  2. Format decimal numbers with fixed width
    By Persist in forum Programming
    Replies: 5
    Last Post: 07-14-2010, 05:43 PM
  3. Replies: 5
    Last Post: 09-16-2009, 01:56 AM
  4. Formatting Fields and Fixed Width Exporting
    By Panman01 in forum Access
    Replies: 1
    Last Post: 05-22-2009, 09:32 AM
  5. Use fixed height and width for the Access window
    By AndrewAfresh in forum Access
    Replies: 3
    Last Post: 07-05-2006, 09:20 AM

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