Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Aug 2005
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    update condition (Access 2000)

    I want to carry out an update only when the field background is populated, for example
    UPDATE Gardens SET trends = Mid([address],InStr([address],",")+2)
    should be done only when background is true.
    Can you help me ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: update condition (Access 2000)

    If background is a Yes/No field:

    UPDATE Gardens SET trends = Mid([address],InStr([address],",")+2) WHERE background = True

    Otherwise:

    UPDATE Gardens SET trends = Mid([address],InStr([address],",")+2) WHERE background Is Not Null

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •