From: Dorian on
Write a query to do an insert into that column for each row...

Update MyTable Set [Financial Year] = "2009-10" Where [Financial Year] IS
NULL;

By the way, I strongly advise against using any column name with an embedded
space.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"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
From: John W. Vinson on
On Thu, 27 May 2010 13:59:37 -0700, Dominic
<Dominic(a)discussions.microsoft.com> 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]
From: Dominic on
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
> <Dominic(a)discussions.microsoft.com> 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]
> .
>