Converting time to text when importing from MS Query

tropix

New Member
Joined
Mar 6, 2014
Messages
9
Hoping for a solution to this problem I have of trying to import a time into excel.
I am connecting to a company server to import data using Microsoft Query.
I have no problems downloading tables in full with the exception of the TIME which comes across as 0:00:00 even though the time is good when I view it on the server.
This is the SQL I use to import the TIME only to MS Excel.

Code:
SELECT warehouse_transactions.warehouse_trans_time, 
FROM warehouse_transactions warehouse_transactions
WHERE (warehouse_transactions.whse_code='33')

I have seen a CONVERT function but not sure how to implement it in this SQL string.
If there is some way to have the TIME field import to Excel accurately I would be glad to see it.

Thanks
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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