Solved

Trying to change a field type

Posted on 2014-12-15
3
139 Views
Last Modified: 2014-12-15
I'm trying to change a field type from text to currency in a table with 149,934 records but am getting an error ..  "There isn't enough disk space or memory".

Is there a work-around for this problem?
0
Comment
Question by:SteveL13
  • 2
3 Comments
 
LVL 26

Expert Comment

by:Nick67
ID: 40501401
Add a new field to the table that is currency
write an append query to append the text coerced as currency to the field.
Delete the old field
Rename the new field to the old fields name
0
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 250 total points
ID: 40501424
If the column is in the same row, it is an Update query.  Append queries add new rows.

If you still get an error with the new column and update query, then create a new empty table and use an append query to copy the data from the old table to the new table, converting the field in the process.  Once the new table is populated, rename/delete the original and rename the new back to the old table name.  WARNING - if you have autocorrect left on, make absolutely certain to turn it off before performing this operation or you'll be sorry.
0
 
LVL 26

Accepted Solution

by:
Nick67 earned 250 total points
ID: 40501470
Agreed
write an Update query to insert the text coerced as currency to the field.
Not
write an append query to append the text coerced as currency to the field.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question