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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now