Solved

How to modify a field sizes/type without deleting the field in the table in a Access database ?

Posted on 1998-08-06
3
157 Views
Last Modified: 2010-08-05
How to modify a field sizes/type without deleting the field in the table in a Access database ?

Code PLS...

/Janne
0
Comment
Question by:jannea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:anthonyc
ID: 1468124
not possible.
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1468125
Anthonyc is right.  As such it its not possible, because Access does not support it.  However, a common method of acheiveing that result is to do the following:

Add a field to the table as you would like your resultant field to be.

Run an update query using the .execute method:
"Update MyTable Set NewField=OldField"

Then, delete the old field

After all, even if you could do it directly in Access, it wouldn't run any faster or better than doing it this way yourself.
0
 
LVL 1

Author Comment

by:jannea
ID: 1468126
Thanks...
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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

740 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