Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Filling all records of a new field in my table with the same data

Discussion in 'Information Technology' started by Ricky Gibson, Nov 12, 2005.

  1. Ricky Gibson

    Ricky Gibson
    Expand Collapse
    Guest

    I have a table with about 2000 records.
    I have added 2 new fields into the table.
    One with TEXT Data Type and one with YES/NO Data Type.
    Now I want to fill all the 2000 records of the text field with exactly the
    same data.
    The records of the yes/no field I want to set all to YES.
    I suppose there must be an easy way to do it.

    Ricky
     
  2. Loading...

    Similar Threads Forum Date
    1984 DSGMC dilly delaying for filling case against Kamal Nath, alleges Phoolka History of Sikhism May 31, 2010
    Kamdhayn/ਕਾਮਧੇਨ & Wish-fulfilling Elysian Tree. Spiritual Articles Jul 20, 2009
    Sikh News BSP accuses Punjab govt of not fulfilling promise (Outlook India) Breaking News Oct 4, 2007
    Fulfilling one's hopes Gurmat Vichaar Jul 5, 2006
    Superbly fulfilling Spiritual Articles Jan 7, 2006

  3. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    1. Create a query into this table.

    2. Change it to an Update query. (Update on Query menu.)
    Access adds an Update row to the grid.

    3. Drag the new YesNo field into the grid.
    In the Update row beneath this field, type:
    True

    4. Run the query. (Exclamation icon on toolbar.)

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "Ricky Gibson" <rickie@apd.nl> wrote in message
    news:5e1a1$4374ba17$d48e0349$31398@news.chello.nl...
    >I have a table with about 2000 records.
    > I have added 2 new fields into the table.
    > One with TEXT Data Type and one with YES/NO Data Type.
    > Now I want to fill all the 2000 records of the text field with exactly the
    > same data.
    > The records of the yes/no field I want to set all to YES.
    > I suppose there must be an easy way to do it.
     
  4. Ricky Gibson

    Ricky Gibson
    Expand Collapse
    Guest

    Allen,

    Thank you, it works fine, and easy.
    Ricky


    "Allen Browne" <AllenBrowne@SeeSig.Invalid> wrote in message
    news:ekq6mct5FHA.3388@TK2MSFTNGP11.phx.gbl...
    > 1. Create a query into this table.
    >
    > 2. Change it to an Update query. (Update on Query menu.)
    > Access adds an Update row to the grid.
    >
    > 3. Drag the new YesNo field into the grid.
    > In the Update row beneath this field, type:
    > True
    >
    > 4. Run the query. (Exclamation icon on toolbar.)
    >
    > --
    > Allen Browne - Microsoft MVP. Perth, Western Australia.
    > Tips for Access users - http://allenbrowne.com/tips.html
    > Reply to group, rather than allenbrowne at mvps dot org.
    >
    > "Ricky Gibson" <rickie@apd.nl> wrote in message
    > news:5e1a1$4374ba17$d48e0349$31398@news.chello.nl...
    >>I have a table with about 2000 records.
    >> I have added 2 new fields into the table.
    >> One with TEXT Data Type and one with YES/NO Data Type.
    >> Now I want to fill all the 2000 records of the text field with exactly
    >> the same data.
    >> The records of the yes/no field I want to set all to YES.
    >> I suppose there must be an easy way to do it.

    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page