• Update value (2003)

    Author
    Topic
    #456940

    Hi,

    I have about 35 different fields with the similar value (such as Y, N) in my database. Now I have to update Y to 1 and N to 0 in all of 35 fields.

    So what’s the best way to update it?

    Thanks in advance.

    Regards,

    Viewing 0 reply threads
    Author
    Replies
    • #1143867

      Why do you want to do this?

      Are they all in the same table?

      • #1143869

        Hi,

        That’s requirement of another system import specs. I will export it to txt file.

        Yes, they all are in the same table.

        Thanks,

        • #1143871

          Does the other system link to this system and get the data that way?

          Why not just build the query substituting the valu in the query? Or do you have to make a permanent change?

          There’s no easy way to do it, well not that i’m aware of anyway.

          • #1143913

            So do I have to use update query and select all 35 fields to update it?

            Is there any better way to replace those value on all of 35 fields?

            Thanks,

            • #1143916

              You’d need lots of update queries because of the incorrect design of the table. It’s probably easier to open the table in the Access interface and to use Edit | Replace, setting Look in to the table, and Match to Whole field. First replace Y with 1, then replace N with 0.

            • #1143925

              Thanks, Hans.

              But I never use the Access interface, can you provide more detail of how to open and edit it? Do I open the table in view?

              Thanks again.

              Regards,

            • #1143928

              Open the database.
              If necessary, activate the Tables section of the Database window.
              Double-click the table to open it.

            • #1143966

              How many tables are involved ?

    Viewing 0 reply threads
    Reply To: Update value (2003)

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

    Your information: