A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Populate a new field in an existing table



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 09:59 PM posted to microsoft.public.access.tablesdbdesign
Dominic
external usenet poster
 
Posts: 31
Default Populate a new field in an existing table

Hi all

Access 2003:

I have an existing Access table, containing 10,000+ rows called "Printing"
and I have decided to insert a new column called "Financial Year". However,
I am struggling of finding a way to instantly populate this field with the
value "2009-10", without going into each row (I have three more tables to do
this to with 30,000+ rows)

Going forward it will be populated with all the other fields, but I just
need to bring them all up to date first.

Can anyone help out?

Thanks for reading.

DominicB
  #2  
Old May 28th, 2010, 12:36 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Populate a new field in an existing table

On Thu, 27 May 2010 13:59:37 -0700, Dominic
wrote:

Hi all

Access 2003:

I have an existing Access table, containing 10,000+ rows called "Printing"
and I have decided to insert a new column called "Financial Year". However,
I am struggling of finding a way to instantly populate this field with the
value "2009-10", without going into each row (I have three more tables to do
this to with 30,000+ rows)

Going forward it will be populated with all the other fields, but I just
need to bring them all up to date first.

Can anyone help out?

Thanks for reading.

DominicB


This field should simply NOT EXIST AT ALL, if it can be derived from other
data in the table - e.g. a date field.

The Update query Dorian suggests will work nicely, but I really question
whether you're solving the wrong problem!
--

John W. Vinson [MVP]
  #3  
Old May 28th, 2010, 02:53 PM posted to microsoft.public.access.tablesdbdesign
Dominic
external usenet poster
 
Posts: 31
Default Populate a new field in an existing table

Thank you for the advice guys. The information in the field isn't available
elsewhere.

Dorian, the query worked perfectly, and thank you for the heads up on spaces
in column names. This has now been amended.

Dominic

"John W. Vinson" wrote:

On Thu, 27 May 2010 13:59:37 -0700, Dominic
wrote:

Hi all

Access 2003:

I have an existing Access table, containing 10,000+ rows called "Printing"
and I have decided to insert a new column called "Financial Year". However,
I am struggling of finding a way to instantly populate this field with the
value "2009-10", without going into each row (I have three more tables to do
this to with 30,000+ rows)

Going forward it will be populated with all the other fields, but I just
need to bring them all up to date first.

Can anyone help out?

Thanks for reading.

DominicB


This field should simply NOT EXIST AT ALL, if it can be derived from other
data in the table - e.g. a date field.

The Update query Dorian suggests will work nicely, but I really question
whether you're solving the wrong problem!
--

John W. Vinson [MVP]
.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.