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

    INvalid dates February

    Hi



    just thought I'd share this, in case anyone else had hair tearing moments.

    Spent all morning trying to import a spreadsheet with a column named date format dd-mm

    I kept getting convert errors but could see nothing wrong.

    The the proverbial penny dropped I had 12 records with the "date" 29-02

    Made a note of the line no, changed it to 28-02 and it imported perfectly. I then manually changed back to 29-02.

    Can't explain it- not clever enough but it seems Access has a thing about leap years

    cheers

    Ian

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Import the 'date' to 2 fields ,a string field, AND a date.
    The invalid dates will not post, but you can see the actual text in the string version.

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    HI

    thanks but why is 29/2 an invalid date?

    Ian

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Spent all morning trying to import a spreadsheet with a column named date format dd-mm
    You really have a field named "Date"? You do know that "Date" is a reserved word in Access and shouldn't be used as an object name?
    Plus, it is not very descriptive. "Date" of what?? Birth, Death, Internment,......


    format dd-mm
    What does the underlying data look like if you remove the formatting? The access gnomes try their best, but sometimes gets confused.
    A date formatted like "dd-mm" is a string. But you want Access to shove it into a date field.

    (IMO) It would be better to remove the Excel formatting before trying to import. Access requires American format..... for better or worse.

  5. #5
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    just my curiousity, post #3. would that be because there is no year attached? this date is associated with leap year. so a standard year would not have febuary 29th?

  6. #6
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    HI

    thats true the church records list date in one column and year in the other!!

    The society have permission to record the records electronically but apparently have to retain the church format.

    Your idea could be the reason

    cheers

    Ian

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

Similar Threads

  1. month February
    By azhar2006 in forum Queries
    Replies: 7
    Last Post: 07-24-2015, 09:46 PM
  2. Replies: 5
    Last Post: 07-22-2014, 06:58 AM
  3. Replies: 8
    Last Post: 12-02-2013, 03:46 PM
  4. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  5. Replies: 7
    Last Post: 08-28-2011, 02:07 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