Welcome to SPN

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

Sign Up Now!

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.

    >
    >
     

Share This Page