PC Review


Reply
Thread Tools Rate Thread

Autofill Column

 
 
=?Utf-8?B?QW5kcmU=?=
Guest
Posts: n/a
 
      14th Jan 2007
Hi,

I am new at access and I am trying to add a column that shows the same
number in each row. IE. The year 2007 all the way down the column. Is
there any way to automate this as I have many rows 20,000+. As of now I am
copy and pasting from excel but this is annoying.

Thanks
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      14th Jan 2007
On Sun, 14 Jan 2007 11:55:00 -0800, Andre
<(E-Mail Removed)> wrote:

>Hi,
>
>I am new at access and I am trying to add a column that shows the same
>number in each row. IE. The year 2007 all the way down the column. Is
>there any way to automate this as I have many rows 20,000+. As of now I am
>copy and pasting from excel but this is annoying.
>
>Thanks


You can run an Update query to update the table... but I'm not sure I
understand. Do you have 20000 already existing records with a NULL in
this field? Or are you creating empty "placeholder" records to be
filled in later (if so, DON'T; instead just set the DefaultValue
property of the field to 2007)? What's the structure of your table?

John W. Vinson[MVP]
 
Reply With Quote
 
p
Guest
Posts: n/a
 
      15th Jan 2007
UPDATE tablename SET columnname = '2007'

Andre wrote:

> Hi,
>
> I am new at access and I am trying to add a column that shows the same
> number in each row. IE. The year 2007 all the way down the column. Is
> there any way to automate this as I have many rows 20,000+. As of now I am
> copy and pasting from excel but this is annoying.
>
> Thanks


 
Reply With Quote
 
Jan Kowalski
Guest
Posts: n/a
 
      28th Apr 2007

Uzytkownik "p" <(E-Mail Removed)> napisal w wiadomosci
news:(E-Mail Removed)...
> UPDATE tablename SET columnname = '2007'
>
> Andre wrote:
>
>> Hi,
>>
>> I am new at access and I am trying to add a column that shows the same
>> number in each row. IE. The year 2007 all the way down the column. Is
>> there any way to automate this as I have many rows 20,000+. As of now I
>> am
>> copy and pasting from excel but this is annoying.
>>
>> Thanks

>



 
Reply With Quote
 
Tom Ventouris
Guest
Posts: n/a
 
      28th Apr 2007
Create and Update Query to update the field.
The simplest way is to create it in design view.


"Jan Kowalski" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Uzytkownik "p" <(E-Mail Removed)> napisal w wiadomosci
> news:(E-Mail Removed)...
>> UPDATE tablename SET columnname = '2007'
>>
>> Andre wrote:
>>
>>> Hi,
>>>
>>> I am new at access and I am trying to add a column that shows the same
>>> number in each row. IE. The year 2007 all the way down the column. Is
>>> there any way to automate this as I have many rows 20,000+. As of now I
>>> am
>>> copy and pasting from excel but this is annoying.
>>>
>>> Thanks

>>

>
>



 
Reply With Quote
 
Joseph Meehan
Guest
Posts: n/a
 
      28th Apr 2007
Jan Kowalski wrote:
> Uzytkownik "p" <(E-Mail Removed)> napisal w wiadomosci
> news:(E-Mail Removed)...
>> UPDATE tablename SET columnname = '2007'
>>
>> Andre wrote:
>>
>>> Hi,
>>>
>>> I am new at access and I am trying to add a column that shows the
>>> same number in each row. IE. The year 2007 all the way down the
>>> column. Is there any way to automate this as I have many rows
>>> 20,000+. As of now I am
>>> copy and pasting from excel but this is annoying.
>>>
>>> Thanks


On the chance that you may always want 2007 in every row, you should not
add it to the table at all, but you should add it on the form or report and
not save it in every record. Repetitive data should normally not be saved in
each record as you are forced to do in a traditional spreadsheet.

--
Joseph Meehan

Dia 's Muire duit



 
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
Autofill column from data (code) in column next to it Matt Microsoft Excel Worksheet Functions 4 24th Apr 2009 06:17 PM
RE: Automating to autofill column B based on column A entry Shane Devenshire Microsoft Excel Misc 0 2nd Dec 2008 10:02 PM
autoFill column equal to adjacent column Paulg Microsoft Excel Programming 4 17th Jul 2006 01:04 PM
Autofill Column D based on input in Column C =?Utf-8?B?SGVsZW4gTWNDbGFpbmU=?= Microsoft Excel Misc 1 5th Apr 2005 09:11 PM
Autofill from column to row =?Utf-8?B?TWFnbnVzIEhvbG1iZXJn?= Microsoft Excel Misc 1 22nd Mar 2005 10:00 AM


Features
 

Advertising
 

Newsgroups
 


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