Results 1 to 6 of 6
  1. #1
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    assign a value to a feild (Access2000)

    Hi guys!
    Can anyone tell me how I could assign the same value of a feild to another feild in the same record, please? I've tried =[feildname] in the default property of the other feild, but it doesn't seem to be working.

    <img src=/S/help.gif border=0 alt=help width=23 height=15>

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: assign a value to a feild (Access2000)

    Are you trying to ALWAYS have the value of the 2nd field automatically change whenever the first field changes?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: assign a value to a feild (Access2000)

    Why would you want two fields with the same value? And are you talking about fields or controls? You can only do something like that in a form, using references to other controls. You can't do it at the table level.
    Charlotte

  4. #4
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: assign a value to a feild (Access2000)

    yes if possible.

    Rory helped me. The solution is to put a formula similar to
    Me!feild2=Me!feild1
    in the afterupdate event of feild1.

    Thanx 2 all who tried to help me.

  5. #5
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: assign a value to a feild (Access2000)

    I've done it charlotte.
    I was talking about the controls.
    Thanx.

  6. #6
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: assign a value to a feild (Access2000)

    Of course, this prompts the question "Why do you have 2 fields in a table that always have the same information?".
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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