ReluctantDataGuy
Programmer
First problem: Linking an Excel 2002 spreadsheet into Access 2002, I find that Access displays #Num! in fields that contain numbers only, but displays correctly when the cell contains alpha-numberic values.
Interestingly, this only occurs with a link. Importing the Excel file results in correct data being displayed instead of #num!
Second problem. Giving up on linking, I went with an import function. 4 of the Excel columns are defined as Date fields. All 4 fields are defined as Text in Access (because the Excel file has non date values in the date columns - and you know how Excel users love to define a data type for a column and then enter data that doesn't match that data type - and Excel allows it... ;<(
The problem is that while 1 of the 4 fields in Access displays the non date fields correctly, the other 3 of those fields are blank.
Interestingly only 1 of the 3 fields that do not display the data correctly actually creates an import_errors table. The other 2 simply drop the non date values, leaving a blank field (not sure if its "" or Null).
FYI: I've checked all the data types in Excel and Access carefully, and other than the Excel Date --> Access Text difference, the only other difference I see is that the one field that displays correctly has a size of 255 characters and the others are 50. This is how it was created when I imported the Excel table. I've tried manipulating the text length and it doesn't seem to have any effect.
I've seen other threads in TekTips dealing with #Num! but they relate to earlier versions of Excel and Access.
Color me stuck.
Thanks in advance for any help I may get.
ReluctantDataGuy
Interestingly, this only occurs with a link. Importing the Excel file results in correct data being displayed instead of #num!
Second problem. Giving up on linking, I went with an import function. 4 of the Excel columns are defined as Date fields. All 4 fields are defined as Text in Access (because the Excel file has non date values in the date columns - and you know how Excel users love to define a data type for a column and then enter data that doesn't match that data type - and Excel allows it... ;<(
The problem is that while 1 of the 4 fields in Access displays the non date fields correctly, the other 3 of those fields are blank.
Interestingly only 1 of the 3 fields that do not display the data correctly actually creates an import_errors table. The other 2 simply drop the non date values, leaving a blank field (not sure if its "" or Null).
FYI: I've checked all the data types in Excel and Access carefully, and other than the Excel Date --> Access Text difference, the only other difference I see is that the one field that displays correctly has a size of 255 characters and the others are 50. This is how it was created when I imported the Excel table. I've tried manipulating the text length and it doesn't seem to have any effect.
I've seen other threads in TekTips dealing with #Num! but they relate to earlier versions of Excel and Access.
Color me stuck.
Thanks in advance for any help I may get.
ReluctantDataGuy