Results 1 to 5 of 5
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    listing bad dates

    Hi



    Have to convert 46000 text "dates" to a proper date field.

    If I go into table design and change from short text to date/time then it tells me I have 42 fields that cannot be converted.

    Is there a query I can run to just list the fields with the errors? rather than having to trawl through manually

    thanks

    Ian

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    if you update or insert to a temporary table, the invalid dates will be null, so just filter on the table

    or try putting them in a text file, then importing them to a temporary table with a datetype field - it should generate an import errors table which will tell you the row number.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    not tested but another option is to use the isdate function

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    If that data came from importing from Excel then it can be fixed during the import.

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    you can set up a query to show the field in question then set up a second field isdate([datefield]) this will show a true/false value and you can then apply a criteria for the false evaluation to find the ones that aren't getting converted correctly then fix them.

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

Similar Threads

  1. Email Listing
    By Thompyt in forum Programming
    Replies: 20
    Last Post: 08-06-2015, 02:34 PM
  2. Replies: 13
    Last Post: 01-01-2014, 10:28 PM
  3. Listing fields
    By geraldk in forum Queries
    Replies: 19
    Last Post: 04-17-2012, 01:49 PM
  4. Replies: 3
    Last Post: 03-23-2012, 06:16 AM
  5. One to Many Listing in Forms
    By zunebuggy in forum Forms
    Replies: 5
    Last Post: 05-11-2010, 08:12 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