PC Review


Reply
Thread Tools Rate Thread

Column with auto-value

 
 
Bill Linares
Guest
Posts: n/a
 
      4th Sep 2003
I would like to have tables created with VBA have the first column be of
auto-value. I.e. each new row entry causes the column to increase by one.
How do you do that?

Thanks


 
Reply With Quote
 
 
 
 
Dan Artuso
Guest
Posts: n/a
 
      4th Sep 2003
Hi,
The easiest way would be to execute a SQL statement from VBA.
If you use CurrentDb.Execute with this statement:
CREATE TABLE Code3 (
ID AUTOINCREMENT,
Account TEXT(50),
Code MEMO,
Active Bit,
Hits int,
Rotation int
)

The ID column will be an auto-number

--
HTH
Dan Artuso, Access MVP


"Bill Linares" <(E-Mail Removed)> wrote in message news:3f57a277$(E-Mail Removed)...
> I would like to have tables created with VBA have the first column be of
> auto-value. I.e. each new row entry causes the column to increase by one.
> How do you do that?
>
> Thanks
>
>



 
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
Auto column fit vicky Microsoft Excel Programming 2 10th Nov 2009 06:12 PM
How can I auto refresh a column that has an auto filter in place Pastal Microsoft Excel Misc 1 18th Dec 2007 11:43 AM
Combo Box - auto complete and the bound column/text column propert =?Utf-8?B?amVmZmJlcnQ=?= Microsoft Excel Programming 3 29th Jun 2006 10:31 PM
Auto Fill Column with Date based on rows in other column =?Utf-8?B?Sk9VSU9VSQ==?= Microsoft Excel Programming 2 6th Jun 2006 06:28 PM
auto add column Scott Microsoft Excel Programming 2 21st Jul 2003 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 AM.