Changing Data Types in Linked Tables

Dowsey1977

Board Regular
Joined
Apr 6, 2004
Messages
185
Hi,

I have an Access database with a bunch of linked tables, that are linked to tabs on an Excel spreadsheet. The cells in Excel for 1 column are set to number, however, these are text data types in Access. Is there anyway of changing something somewhere so that the datatypes are numeric in both?

I also want 1 field to be memo in Access, is there a change I can make to Excel to make this happen?

Many thanks!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I think, you can't control datatypes for linked tables.
My understanding is that Access guesses as to the field type based on the first few sample rows (records) of data in the given column (fields).

One way to get the right type is to put dummy data into that first row forcing it to see it. This trick tends to get used when the first few rows may not have data in every field. Kinda messy though if you're working with linked fields although it's not terribly difficult to programmatically ignore the dummy data record.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,710
Messages
6,161,445
Members
451,706
Latest member
SMB1982

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