Data type mismatch

22strider

Active Member
Joined
Jun 11, 2007
Messages
311
Hello Friends

Could you please help me get around this data type mismatch error that I am getting while executing a query?

I have a database in which one data type of one of the columns is "memo" even though it contains numbers. One of the record for example is "0.244897961616516". Now I have to set up criteria on this column for my reports (using comparison operators). And I am getting error that there is data type mismatch.

I tried converting it to "number" but that didn't work. It truncated above given number to zero (0) even after selecting field size decimal.

any ideas?

Thanks
Rajesh
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I just tried Double and it seems to convert just fine. Decimal not so much. Decimal is one of those SQL server compatibility datatypes that wasn't implemented too well.

hth,

Rich
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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