ERROR!! tying to change a text value to number

abesimpson

Active Member
Joined
May 3, 2003
Messages
435
I am attempting to do a calculation on a field that displays numbers as text values. The database is approx 1.2G in size and when I attempt to change the field properties of the table from text to number I get the following error message "There is not enough disk space or memory".

This seems unlikly because there are 17G of free disc space available and 1G of Ram; when the message is displayed 600Meg of Ram is shown free.

Is ther a work around to this problem or use a formula that converts text to a number within a query?

Thanks :oops: :oops:
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Are you trying to permanently change the field type or do some type of conversion in your query?

To convert text to a value in a query use one of the conversion functions - CCur, CLng, CDbl, CSng (see Type Conversion Functions in VBA help) or Val.

If you want to permanently change a data type then an alternative is to make a copy of your table (structure only and change the data type to what you need) and then create an append query to append data from your original table to your new table. I've ran into the problem you've described and this is one way of getting round it.
 
Upvote 0
DK (and anyone else)

Your Visual Basic VDbl suggestion worked.

I also tryed the data append solution... works like a charm on a small dataset!!! BUT, when I try it on the real data I get a new error message "Invalid Argument"; before the append query has completed.

Any new suggestions?

Many Thanks

abe :pray:
 
Upvote 0

Forum statistics

Threads
1,221,621
Messages
6,160,879
Members
451,675
Latest member
Parlapalli

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