Results 1 to 4 of 4
  1. #1
    JeffG3209 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Location
    Weatherford, Texas
    Posts
    66

    Where is check box data stored?


    Well, i spent a rather large part of the day revamping my current design. I was going to create a 5 drop down boxes on a form with 5 variables in each box. The object is to select a method of contact with clients. Example: Phone, Email, In Person, Social Media, etc. The reason for five boxes is the result could be more than one method of contact. Example: Email & Phone

    I thought, hey, what's up with check boxes? They would be much simpler and an easier path. So I added one. I thought ok, I will save my progress on the form and take a look at my table to see where the data is stored. I have read that the output for a check box is either a -1 or a 0 (yes/no).

    So I went digging. I cant find the data for the check boxes, but it is being saved to the record. That isn't going to work for me because I am wired to need to know how and why

    I'm sure it is pretty simple, anyone care to enlighten me?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    What do you mean 'cant find the data for the check boxes'? You say it is saved to record so you have found the data.

    You are using checkboxes as part of an Option Group? Checking a box sets value of the Option Group. It is the Option Group control that is bound to field and that value is saved.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    JeffG3209 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Location
    Weatherford, Texas
    Posts
    66
    Quote Originally Posted by June7 View Post
    It is the Option Group control that is bound to field and that value is saved.
    I'm always learning. I figured that the check box would have a field on a table for each record. This is not the case, where is the option group data stored? Is this something that takes place behind the scenes of access?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    If checkboxes or option buttons are not part of an Option Group then each would be bound to a field of table and save their individual value. As part of an Option Group the checkbox/option button does not have an individual ControlSource property - the Option Group control has the ControlSource property. Selection of checkbox/button sets the value of the Option Group control. This value is saved to the field in table, probably a text or number datatype. Nothing is 'behind the scenes', to save value some control must be bound to a field.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Can Data be Stored in a Report
    By jgross in forum Reports
    Replies: 1
    Last Post: 02-02-2011, 10:31 PM
  2. Change database where data is stored with a dropdown box
    By le_carrington in forum Programming
    Replies: 5
    Last Post: 11-25-2010, 11:45 PM
  3. Check multiple data
    By carstenhdk in forum Queries
    Replies: 1
    Last Post: 05-05-2010, 10:20 AM
  4. Check multiple data
    By carstenhdk in forum Access
    Replies: 1
    Last Post: 05-05-2010, 10:19 AM
  5. Replies: 6
    Last Post: 04-18-2010, 03:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums