Change format on data that is imported from Access

jcaptchaos2

Well-known Member
Joined
Sep 24, 2002
Messages
1,032
Office Version
  1. 365
Platform
  1. Windows
I have some data that is brought in from an Access database query, in the access query the data is formatted as short time. When it is pulled into my excel spread sheet it is formatted as text. '8:12 I need to add that data and the only way I am able to do that is highlight the column of data in the table and use the text to column feature to remove the '. The only issue is when the table is refreshed I will have to do it over and over again. Is there another way to do it?
 
^^ ditto Norie's last question.
 
Last edited:
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Code:
Total Time: IIf([ParollTimeOfftbl].[Date] Is Not Null,DateDiff("n",[ParollTimeOntbl].[Date]+CDate(Format([ParollTimeOntbl].[Time On],"Long Time")),[ParollTimeOfftbl].[Date]+CDate(Format([ParollTimeOfftbl].[Time Off],"Long Time"))),0)\60 & Format([Total Minutes] Mod 60,"\:00")
 
Upvote 0
You are using Format in that expression, so perhaps somehow the expression is returning text.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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