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
160 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

732 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