Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Trying to change a field type

Posted on 2014-12-15
3
Medium Priority
?
171 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 40

Assisted Solution

by:PatHartman
PatHartman earned 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

971 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