Solved

Update the size of Column in MS Access

Posted on 2004-03-30
2
161 Views
Last Modified: 2012-05-04
hi everyone,
           i am using VB6.0 and MS Access 2000.

I want to update the table column by field size alone.

I don't want to drop the table or column.

Is there a way to do it ?.

Other than to insert the column and copy the contents to this and then Delete the table column.

Your help is really appreciated.
0
Comment
Question by:JAMU
  • 2
2 Comments
 
LVL 18

Expert Comment

by:Sethi
Comment Utility
Use the Alter Table SQL statement to achieve this.
0
 
LVL 18

Accepted Solution

by:
Sethi earned 50 total points
Comment Utility
Example:
cnn.Execute "ALTER TABLE EMPLOYEE ALTER [FName] Text(25)"
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now