Results 1 to 2 of 2
  1. #1
    kjcochran is offline Novice
    Windows XP Access 2000
    Join Date
    Mar 2013
    Posts
    3

    Expressions and formulas

    Is there a way to use a convert use a "text to column" function in access that separates at a fixed width?



    I have an access table (that I can't change) that includes the data and time in the same column and I want to separate the two (date and time) in a query. I can't use the "Left" function because my date isn't a consistent 10 characters.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Try Format function.

    Format([date field],"MM/DD/YYYY")
    or
    Format([date field], "Short Date")

    Format([date field], "hh:nn:ss AM")
    or
    Format([date field], "Long Time")
    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. Weekending Formulas
    By Huddle in forum Access
    Replies: 2
    Last Post: 07-02-2012, 01:36 PM
  2. Query Formulas
    By ShadeRF in forum Queries
    Replies: 8
    Last Post: 12-13-2011, 05:34 AM
  3. Query Formulas
    By ShadeRF in forum Queries
    Replies: 6
    Last Post: 11-15-2011, 10:45 AM
  4. Formulas
    By dunnmel4 in forum Access
    Replies: 0
    Last Post: 03-27-2011, 04:59 PM
  5. Formatting formulas
    By katrinanyc926 in forum Queries
    Replies: 2
    Last Post: 08-16-2010, 07:52 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