Results 1 to 10 of 10
  1. #1
    Ashe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2010
    Location
    Blacksburg VA
    Posts
    65

    Populate checkbox


    I have a form with several text boxes and one check box. Three texts boxes are used for data entry and the other text box and the checkbox are parent data that are called up for reference’s sake. The text is called up from a Select command in the row source, and I thought I could call up the correct value of the check box by putting a select command in the control source, but it’s not working. I have “Select Table.Checkbox FROM Table” in the control source, but it doesn’t populate the check boxes according the selected text (it doesn’t populate them at all). What am I missing?


    Thank you in advance!
    PS: While I am working in Access 2010, this database is an .mdb and must be operable in A2003.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The CheckBox would need to have a ControlSource of one of the fields in the RecordSource of the form.

  3. #3
    Ashe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2010
    Location
    Blacksburg VA
    Posts
    65
    Bummer! There's no way around that?

    Could I add something to the RecordSource table that would automatically pull the data from the Checkbox table? Or maybe some fancy subform work?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A form is allowed one RecordSource, period! That can be a query that involves a number of tables, but it all must be in one RecordSource. You can use Domain Functions to retrieve values from other non related tables if you want (DLoopup(), DCount(), etc). I would put the Domain Functions in the Current Event of the form.

  5. #5
    Ashe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2010
    Location
    Blacksburg VA
    Posts
    65
    Can a domain function be entered directly into the control source?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Generally the answer is yes.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What is wrong with putting them in the CurrentEvent of the form?

  8. #8
    Ashe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2010
    Location
    Blacksburg VA
    Posts
    65
    It's a continuous form, so I'm concerned that the CurrentEvent wouldn't work when the user goes to enter a second record...

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    As you know, continuous views are really just one view repeated. They do not always do as you want when the controls are not bound to the RecordSource.

  10. #10
    Ashe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2010
    Location
    Blacksburg VA
    Posts
    65
    Yes, they're certainly tricky!
    Thanks for your help!

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

Similar Threads

  1. Checkbox
    By Patience in forum Access
    Replies: 5
    Last Post: 06-22-2010, 05:37 AM
  2. Using a checkbox help
    By gbjc105 in forum Forms
    Replies: 1
    Last Post: 01-28-2010, 08:27 PM
  3. Checkbox
    By Rbtsmith in forum Access
    Replies: 2
    Last Post: 02-17-2009, 04:19 PM
  4. checkbox
    By Suresh in forum Forms
    Replies: 0
    Last Post: 12-19-2007, 01:30 AM
  5. access checkbox
    By nshack31 in forum Forms
    Replies: 1
    Last Post: 12-09-2005, 10:17 PM

Tags for this Thread

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