Welcome to SPN

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

Sign Up Now!
  1. Monthly (Recurring) Target: $300 :: Achieved: $95
      Become a Supporter    ::   Make a Contribution   

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
    >>>

    >>
    >>

    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page