Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Aug 2001
    Location
    Cape Town, South Africa, South Africa
    Posts
    399
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change Date (Access 2003)

    I've imported a text file with the following date format 13.03.2006. I would like to do a query to have all records with a date on or before 13.03.2006, but Access does see the text as date and when I change the format of the field the value becomes null

    TIA

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Change Date (Access 2003)

    I assume that the fiield was imported as a text field, not as a date field. You can create a query based on the table with a calculated column

    TheDate: DateSerial(Right([TextField], 4), Mid([TextField], 4, 2), Left([TextField], 2))

    where TextField is the field containing dates as text. You can then create another query based on this query and filter the calculated date field.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •