• Add to data in a particular field (Access 97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Add to data in a particular field (Access 97)

    Author
    Topic
    #413493

    I would like to update all of the records in one field of a table. Actually, I would like to add 2004 to the existing data in the field. Is there any way to use an update query to do this?

    Viewing 1 reply thread
    Author
    Replies
    • #912759

      Yes, you can use an update query. Add only the field you want to update to the query grid.

      I’m not sure what exactly you want.
      If you want to set the value of the field to 2004 in all records, enter 2004 in the ‘Update to’ row.
      If you want to add (numerically) 2004 to the value of the field, enter [FieldName]+2004 in the ‘Update to’ row, where FieldName is the name of the field.
      If you want to append 2004 (as a string) to the value of the field, enter [FieldName] & “2004” in the ‘Update to’ row, where FieldName is the name of the field.

      • #912761

        Thanks, I actually wanted to append 2004 to the data already in the field.

        Works great!!

      • #912762

        Thanks, I actually wanted to append 2004 to the data already in the field.

        Works great!!

    • #912760

      Yes, you can use an update query. Add only the field you want to update to the query grid.

      I’m not sure what exactly you want.
      If you want to set the value of the field to 2004 in all records, enter 2004 in the ‘Update to’ row.
      If you want to add (numerically) 2004 to the value of the field, enter [FieldName]+2004 in the ‘Update to’ row, where FieldName is the name of the field.
      If you want to append 2004 (as a string) to the value of the field, enter [FieldName] & “2004” in the ‘Update to’ row, where FieldName is the name of the field.

    Viewing 1 reply thread
    Reply To: Add to data in a particular field (Access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: