• Update query to exchange 2 fields (2000, 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Update query to exchange 2 fields (2000, 2003)

    Author
    Topic
    #456469

    Hi All,

    I have a table with these two fields:

    artWidth
    artLength

    What I need is an update query that swaps artLength and artWidth if artWidth > artLength

    Viewing 0 reply threads
    Author
    Replies
    • #1140799

      Hmm. Tried a bit on my own and came up with:

      UPDATE tblArtArtikel SET tblArtArtikel.artLength = [artWidth], tblArtArtikel.artWidth = [artLength]
      WHERE (((tblArtArtikel.artLength)<[artWidth]));

      Is this OK?

    Viewing 0 reply threads
    Reply To: Update query to exchange 2 fields (2000, 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: