Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm importing a excel data into MS access Sharepoint linked tables and i get the Date is out of range or is in an invalid format for a 12/31/9999 date.How can i fix this issue? please help me

What I have tried:

This is my importing code
DoCmd.TransferSpreadsheet acImport,acSpreadsheetTypeExcel9,"TAMIT_NA_EMEA_Extract", strItem, True
Posted
Updated 15-Jan-20 3:26am
Comments
Richard MacCutchan 12-May-17 6:41am    
You fix the issue by finding out why that date is not acceptable.
Siva Krishna 12-May-17 6:47am    
Only These dates(30/12/9999,30/12/9998) are not accepting.
Richard MacCutchan 12-May-17 7:12am    
Sorry, but you have given us no context so we have no idea where or why this may be happening.
CHill60 12-May-17 6:42am    
Does it work for dates that are not quite as far in the future?

It seems to be a limitation of SharePoint. A web research shows that entering wrong dates into a SharePoint form issues the error message
Quote:
You must specify a valid date within the range of 1/1/1900 and 12/31/8900
So you have to check the Excel date and limit it to the above range or ensure that the Excel sheet does not contain such dates.
 
Share this answer
 
Comments
ZurdoDev 12-May-17 9:03am    
+5 for knowing how to google. ;)
Jochen Arndt 12-May-17 9:07am    
Thank you.

But my google-foo was not strong enough to find a MS reference about this limitation beside some forum posts.
I had dates entered as 00:00:00 once removed it loaded OK
I just sorted the date fields oldest to newest to find them as entering 00:00:00 as criteria didn't always catch them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900