Solved

Update the size of Column in MS Access

Posted on 2004-03-30
2
168 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
[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
  • 2
2 Comments
 
LVL 18

Expert Comment

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

Accepted Solution

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

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…
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…
Suggested Courses
Course of the Month7 days, 12 hours left to enroll

632 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