Share via

ODBC default value

Anonymous
2010-07-06T09:00:15+00:00

In my excel sheet I have 10 Date values in a column continuously. 11,12 and 13th row has 8 digit number values in the same column. Those number values are shown in '#' marks because I've formatted the entire column as Date.

When I export excel data to Visual Fox-Pro DBF table using ODBC connector it comes the 11th row value as a long date like 11/06/7719. 12 and 13th row values are empty.

My question is why is the 11th row value converts from Number value to Date value. Actually it also should be empty as 12 and 13th row values.

Please someone help.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-07-06T13:27:04+00:00

More specifically, Excel can interpret numbers up to 2958465 as dates but larger not.  So 2125657 converts to 11/06/7719 but numbers >=2958466 can't.


If this answer solves your problem, please check, Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers Shane Devenshire

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-07-07T02:50:36+00:00

    Thanks Shane,

    These are the values in 11th to 13th rows.

    26062001, 27062010, 28062010

    If this is the case how can I avoid these conversion, otherwise it imports wrong date values.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-07-06T13:21:58+00:00

    Most likely the number in the 11 row can be intrepreted as a date by Fox Pro but the two other number are outside of For Pro's date range.

    We would need to know the actual values in rows 11-13 to answer.


    If this answer solves your problem, please check, Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers Shane Devenshire

    Was this answer helpful?

    0 comments No comments