Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Nov 2001
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Updatable field (Access 2000)

    In my query i have felds A and B. Can i create the filed b to be updatable from field A and how can i do it ? I mean any value entered in A to be equal to B

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

    Re: Updatable field (Access 2000)

    If you want B to be equal to A, why do you need B at all?

  3. #3
    2 Star Lounger
    Join Date
    Nov 2001
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Updatable field (Access 2000)

    B is linked with another table.B is the availaility in the house and A is the demand order.If we decide to change the demand we want to change at the same time its availablity.because after that we are updating the available quantiies.We are then sending B back.

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

    Re: Updatable field (Access 2000)

    You'd have to do this in a form, you cannot do it in a query.
    Create an AfterUpdate event for the text box bound to field A:

    Private Sub A_AfterUpdate()
    Me.B = Me.A
    End Sub

    You must use the real names for A and B of course.
    When the user changes the value of A, that of B will be updated too. The value of B can be edited by the user after that.

Posting Permissions

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