PC Review


Reply
Thread Tools Rate Thread

Can't create Integer field, a Long Integer is created instead?

 
 
cbu
Guest
Posts: n/a
 
      2nd Jan 2004
Using VB6 to add a new field of type Integer with
following command text:
"ALTER table <table name> ADD COLUMN <New field name>
INT" ( also tried using "INTEGER instead of just 'INT'"

This always creates the new field as a LONG INTEGER and I
don't know why. I use "ALTER table <table name> ADD
COLUMN <New field name> LONG" to create a long integer
field, but I just want the size to be the smaller of the
two ('Integer' type).

How can this be done?

 
Reply With Quote
 
 
 
 
JSand42737
Guest
Posts: n/a
 
      2nd Jan 2004
In article <00d601c3d14f$80a870d0$(E-Mail Removed)>, "cbu"
<(E-Mail Removed)> writes:

>Using VB6 to add a new field of type Integer with
>following command text:
>"ALTER table <table name> ADD COLUMN <New field name>
>INT" ( also tried using "INTEGER instead of just 'INT'"
>
>This always creates the new field as a LONG INTEGER and I
>don't know why. I use "ALTER table <table name> ADD
>COLUMN <New field name> LONG" to create a long integer
>field, but I just want the size to be the smaller of the
>two ('Integer' type).
>
>How can this be done?
>


You can use either SHORT, SMALLINT or INTEGER2.


--

Jon

www.applecore99.com - Access Tips and Tricks

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Long Integer field size Selby Microsoft Access Getting Started 11 3rd Jun 2009 07:01 PM
Create Code on Long Integer Field Andrew Microsoft Access 2 10th Feb 2009 05:05 PM
FindFirst when field is Long Integer =?Utf-8?B?RWQgQmxvb20=?= Microsoft Access VBA Modules 4 29th Nov 2007 12:54 PM
Date field appear as long integer John D via AccessMonster.com Microsoft Access External Data 2 28th Nov 2005 06:02 PM
long integer field (AutoNumber) michael@go-on-line.de Microsoft Access 4 5th Oct 2005 10:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.