Linked Excel Table

jtrombley24

New Member
Joined
Feb 21, 2016
Messages
27
All,

In an Access 2010 database I have a linked Excel table from which I create a local table with using this query:

Code:
SELECT DISTINCT Batch, Material, [Document Date], MIN([Posting Date]) AS Posting_Date INTO Ship_Data
FROM mb51_link
GROUP BY Batch, Material, [Document Date];

I would like to specify my data type via SQL as the table gets created. Is this possible with something similar to this?

Code:
CAST([Document Date] AS DateValue)
Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Better way of doing it.
Set up a blank table shell the way you want, which your field names, types, and properties.
Then instead of using a Make Table query to create a new Table, use an Append Query to write the records to the pre-designed table shell.
 
Upvote 0

Forum statistics

Threads
1,221,798
Messages
6,162,027
Members
451,737
Latest member
MRASHLEY

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