Solved

Update the size of Column in MS Access

Posted on 2004-03-30
2
165 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending a email via excel using vba 6 109
TT Auto Dashboard 13 100
Sub or Function is not defined 6 51
"Failed to convert parameter value from a String to a Decimal." 4 29
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
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…

713 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