TransferSpreadsheet Action in a Macro

cterjesen

Board Regular
Joined
Jun 23, 2003
Messages
119
I am using the TransferSpreadsheet Action in a macro to grab data from an Excel spreadsheet. It pulls in the numeric data fine, but the text data from Excel does not come over into the table that I'm putting the data in in Access.

Can anyone help?

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
did you make sure that the field is not numeric in the table.

the only think I can thing wriht now with that info
 
Upvote 0
Yes, the field in the table is text. Does it matter that where Access is grabbing the data from Excel all of the cells are links (not actual typed text)?
 
Upvote 0
Hi, I'm wondering if the links are causing the problem, or alternatively Access is having trouble with the data types. ... Try a dummy run where you do this:
1. Try importing this into a dummy Access table -- let Access create a NEW table for you.

Does this help?

If not, modify the Excel data as follows and try again:
2. Copy the Excel data to a new workbook / sheet but use Paste Special to paste values and formats. Now import THIS dataset into a new table that Access creates.

If either of these methods helps, you can use the working table for further imports.

Denis
 
Upvote 0
It looks like the problem was with the links in Excel. It was putting a zero in fields that were null. Access was not reading this information as text when it imported it.

I changed the formula to put the word "null" when the linked cell was null. Access was able to figure this out.

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top