Welcome to SPN

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

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

Bound checkboxes and how to untie it and yet keep it bound

Discussion in 'Information Technology' started by EvanSB, Nov 12, 2005.

  1. EvanSB

    EvanSB
    Expand Collapse
    Guest

    Access newbie here. I couldn't find the answer floating around, so I'm trying
    it here - I'm working on a database of contact info with two subforms -
    Events and Requests info. I've got the contacts all set and the Events all
    set, before I tackle Requests. I have a checkbox ("Tax Letter Sent?") that I
    bound to the Event_ID for it changes for every person and every event that
    person is involved in. It works - except that when I check the box, the
    Event_ID field goes to a "-1" category from something like "Welcome Home
    Dinner". When I change the Event_ID back to said event, the checkbox unchecks
    itself. How can I solve this? Thanks!
     
  2. Loading...


  3. OP
    Sprinks

    Sprinks
    Expand Collapse
    Guest

    Evan,

    If a checkbox, or any other control, is Bound to a field, then whatever data
    is entered into the control is saved to the field to which it is Bound. When
    you check the box, the value for True, which is -1, is saved to the field.
    Since any value other than -1 is considered False, when you change the value
    in your combo box, which is also Bound to the Event_ID field, it shows a
    value of False in the checkbox.

    If you need a status field for your record, add a new Yes/No type field to
    the underlying table.

    Sprinks


    "EvanSB" wrote:

    > Access newbie here. I couldn't find the answer floating around, so I'm trying
    > it here - I'm working on a database of contact info with two subforms -
    > Events and Requests info. I've got the contacts all set and the Events all
    > set, before I tackle Requests. I have a checkbox ("Tax Letter Sent?") that I
    > bound to the Event_ID for it changes for every person and every event that
    > person is involved in. It works - except that when I check the box, the
    > Event_ID field goes to a "-1" category from something like "Welcome Home
    > Dinner". When I change the Event_ID back to said event, the checkbox unchecks
    > itself. How can I solve this? Thanks!
     
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