Datatype mismatch

G2K

Active Member
Joined
May 29, 2009
Messages
355
Hi all,

i am extracting data from Ms acess to excel spreadsheet. the datatype in Ms-acess is date. but format of data is not correnct in spreadsheet, few records are left alined i.e. text type.when i try to edit it i found the records are followed by (') apostrophe.below is the output records for your reference....


28/05/2009
15/05/2009
13/05/2009
13/05/2009
05/08/09
05/08/09
05/08/09
05/01/09
23/04/2009
21/04/2009

Please help................

Thanks
G2K
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You could put next formula in a column side to tour imported data
=SUBSTITUTE(A1,"'","")*1
Then make a Copy and Special > Paste > Value
 
Upvote 0
How exactly are you 'extracting' the data?

If the data in Access is really dates then it should appear so in Excel unless there's somthing else going on.:)
 
Upvote 0
thanks for quick reply,

but' it not worling out as i ve been extracting data on spreasdsheet11.0 on vba form.

is there any other way to fix this problem....?

Thanks...
 
Upvote 0
Sorry but what exactly do you mean by 'extracting data on spreasdsheet11.0 on vba form'?

Do you mean you are doing something with a spreadsheet control on a userform?

If you are what are you doing, specifically how are you 'extracting' the data and where are you extracting ot from?
 
Upvote 0
yes, i am extracting data from acess on spreadsheet control on a userform.

Thanks..

<!-- / message --><!-- sig -->
 
Upvote 0
But how (and why) are you doing that?

Is the problem with the data formatting on the worksheet in the spreadsheet control on the userform?
 
Upvote 0
earlier i thought this is data formating problem and try to sort out by format function but soon i realised that the date column data is left alined and it is in text format. the date starts with (') and formating is also not effective on that.

the date column in acess table is date/time type. i don't kow why it is not converting text to datetype data

thanks....

<!-- / message --><!-- sig -->
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,273
Members
448,559
Latest member
MrPJ_Harper

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