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
162 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 In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

717 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