Results 1 to 4 of 4
  1. #1
    justhininabouti is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    15

    Checkbox status from combobox


    I have a field (Marital Status), who's data type is an entered lookup table (Married, Single, Widowed, Divorced, Seperated). The user would prefer not change the look of the current (Paper, 3 part, with carbon (remember that stuff) form which uses check boxes for these entries. Most of the time this report will be call for a single individual, however once a year it will be called for a number of people at once. I'd like to just check the checkbox that coresponds to the combobox item selected.

    I was thinking of using a VBA Event Procedure attached to the 'On Load' event to accomplish this. Will this work? Is there another method that would be more effecient?

    TIA

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Use the OnFormat event which is found in the section of the form these unbound checkboxs are located.

    Remember to toggle off the check(s) as the start of the code otherwise prior checks will remain in affect. If this isn't clear - you see what I mean as soon as you do a few trials.

    Hope it helps.

  3. #3
    justhininabouti is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    15
    NTC, Thanks. I tried your suguestion, and I see how it will work, but I'm having a problem. when I use...

    Me.rptMarried.value = 0 (or no or false) I get the following message...

    Run-time error '2448'
    You can't assign a value to this object.

    Any Ideas?

  4. #4
    justhininabouti is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    15
    I found the problem. I had created the checkboxes inside a frame. I deleted the checkboxes, and recreated them outside the frame, and all is fine.

    Thanks again NTC!

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

Similar Threads

  1. Replies: 1
    Last Post: 11-03-2011, 11:56 PM
  2. Status (yes/no)
    By combine21 in forum Access
    Replies: 2
    Last Post: 07-26-2011, 02:37 PM
  3. Replies: 5
    Last Post: 07-23-2011, 11:48 PM
  4. Status Bar Totals
    By ZMac in forum Access
    Replies: 1
    Last Post: 06-08-2011, 01:16 PM
  5. Form Checkbox/combobox help
    By KevinMCB in forum Forms
    Replies: 4
    Last Post: 11-30-2010, 11:05 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