Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Change value

Discussion in 'Information Technology' started by Tom, Jul 28, 2006.

Tags:
  1. Tom

    Tom
    Expand Collapse
    Guest

    Hi all,

    On a form I have a field called special.
    I also have a table "tblspecials" which has a field called OK with default
    value 0.

    When field special is changed\updated, I want OK to change to 1.

    TIA,

    Tom
     
  2. Loading...


  3. Wayne Morgan

    Wayne Morgan
    Expand Collapse
    Guest

    Is the Ok field also available to the form? If so, use the AfterUpdate event
    of the textbox for Special and set Ok to 1.

    Example:
    Me.txtOk = 1

    --
    Wayne Morgan
    MS Access MVP


    "Tom" <partner1973@yahoo.com> wrote in message
    news:ezbN%23QDlGHA.1000@TK2MSFTNGP04.phx.gbl...
    > Hi all,
    >
    > On a form I have a field called special.
    > I also have a table "tblspecials" which has a field called OK with default
    > value 0.
    >
    > When field special is changed\updated, I want OK to change to 1.
    >
    > TIA,
    >
    > Tom
    >
     
  4. Tom

    Tom
    Expand Collapse
    Guest

    Thank Wayne for the reply.
    I was not clear at first, and maybe it`s not possible.

    Here is the case:
    tblspecials: vendor, product, quantity, OK
    Form1: Vendor, product, special
    On the form when the user choose vendor and product the special field
    populate with Sum from a query(specialsum) that match the combination of
    vendor and product with a DLookup function.
    After special populated, I need all the records that this sum was built from
    to change value to 1 in the OK field.

    TIA,
    Tom


    "Wayne Morgan" <comprev_gothroughthenewsgroup@hotmail.com> wrote in message
    news:%23iP6YCFlGHA.1600@TK2MSFTNGP04.phx.gbl...
    > Is the Ok field also available to the form? If so, use the AfterUpdate
    > event of the textbox for Special and set Ok to 1.
    >
    > Example:
    > Me.txtOk = 1
    >
    > --
    > Wayne Morgan
    > MS Access MVP
    >
    >
    > "Tom" <partner1973@yahoo.com> wrote in message
    > news:ezbN%23QDlGHA.1000@TK2MSFTNGP04.phx.gbl...
    >> Hi all,
    >>
    >> On a form I have a field called special.
    >> I also have a table "tblspecials" which has a field called OK with
    >> default value 0.
    >>
    >> When field special is changed\updated, I want OK to change to 1.
    >>
    >> TIA,
    >>
    >> Tom
    >>

    >
    >
     
  5. Tom

    Tom
    Expand Collapse
    Guest

    I got it,
    I used update query.

    Tom
    "Tom" <partner1973@yahoo.com> wrote in message
    news:O5aXClHlGHA.1276@TK2MSFTNGP03.phx.gbl...
    > Thank Wayne for the reply.
    > I was not clear at first, and maybe it`s not possible.
    >
    > Here is the case:
    > tblspecials: vendor, product, quantity, OK
    > Form1: Vendor, product, special
    > On the form when the user choose vendor and product the special field
    > populate with Sum from a query(specialsum) that match the combination of
    > vendor and product with a DLookup function.
    > After special populated, I need all the records that this sum was built
    > from to change value to 1 in the OK field.
    >
    > TIA,
    > Tom
    >
    >
    > "Wayne Morgan" <comprev_gothroughthenewsgroup@hotmail.com> wrote in
    > message news:%23iP6YCFlGHA.1600@TK2MSFTNGP04.phx.gbl...
    >> Is the Ok field also available to the form? If so, use the AfterUpdate
    >> event of the textbox for Special and set Ok to 1.
    >>
    >> Example:
    >> Me.txtOk = 1
    >>
    >> --
    >> Wayne Morgan
    >> MS Access MVP
    >>
    >>
    >> "Tom" <partner1973@yahoo.com> wrote in message
    >> news:ezbN%23QDlGHA.1000@TK2MSFTNGP04.phx.gbl...
    >>> Hi all,
    >>>
    >>> On a form I have a field called special.
    >>> I also have a table "tblspecials" which has a field called OK with
    >>> default value 0.
    >>>
    >>> When field special is changed\updated, I want OK to change to 1.
    >>>
    >>> TIA,
    >>>
    >>> Tom
    >>>

    >>
    >>

    >
    >
     

Share This Page