Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
171 views
in Technique[技术] by (71.8m points)

oracle11g - OBIEE exported csv and when importing to Access I get an error

I have a report on OBIEE, the date field I made it Custom format to MM-DD-YYYY I have also try [FMT:dateShort]. Once I exported to .csv I am Linking the file with MS Access 2007 and the date field I get an error #NUM! why is that ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Either one of these could be the problem/solution:

The #Num! in Access is telling you the cell contains a mix of data; some digitit, some text, for example: 34G (or your '-') would throw a #Num!

You need to go back to the Excel and change the format of any cell containing both numbers and text to "mixed data" then save that sheet before importing to Access.

You can do this with a Macro:

Sub Addspace() 
  Dim cell As Object 
  For Each cell In Selection 
    cell.Value = " " & cell.Value 
    cell.Value = Right(cell.Value, Len(cell.Value) - 1) 
  Next 
End Sub 

Simply highlight cells needing the formatting, run the above macro, then re-save spreadsheet.

Or:

The #Num! error value means that the value in the field is too large (either positively or negatively) to be stored in the field, based on the field's DataType or FieldSize property setting. (https://support.microsoft.com/en-us/kb/209132)

Based on your format of the dates, I would try the first fix before anything else. Date =/= Number


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...