Results 1 to 6 of 6
  1. #1
    p4ck3tl055 is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Posts
    4

    Access 2007 - Form Creation

    Complete Access noob here - please be gentle with me.



    I'm trying to create a form that allows entry of data into a table. The table would track the CEU training taken throughout the year by our employees.

    Not so hard, except I want to be able to choose who attended a class by selecting a check-box next to their name. And of course that list will need to be generated from a list of employees in a table every time the form is called - changing based on the the comings and goings of employees.

    I've tried to explain it a bit better with the attached picture. I hope you folks can understand what I'm after and can help me.

    Thanks in advance...


  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you want to consider a multi-select listbox instead of the checkboxes, I'd to this:

    http://www.baldyweb.com/MultiselectAppend.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    p4ck3tl055 is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Posts
    4
    Baldy:

    Thanks for the reply!

    I've used your code and tried to adapt it for my needs, but I'm still failing.

    I've attached a copy of my database. What's happening is the data is not getting added to my "matrix" table. It's almost like the code is being ignored or something. I'll keep plugging away and learn more about what's going on, but I simply do not see where the code is failing.

    Thanks again for the willingness to help.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Your button is tied to an embedded macro, not the VBA code. Look at the properties of the button, on the events tab. It should say

    [Event Procedure]

    there.
    Last edited by pbaldy; 03-18-2010 at 12:29 PM. Reason: clarify
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    p4ck3tl055 is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Posts
    4
    Baldy,

    Yeah I found that about 10 minutes after I posted here. But I did find the solution....Security Settings.

    Somehow (in a fit of click-happiness I guess) I turned off notifications about VB code being dangerous and behind the scenes, Access was turning off all VB code. Well I found out where that was and have added a few places on my hard drive to the "Trusted" locations and now things are just peachy.

    Which now means I can write more code and it may actually work...yay!

    Thanks again for your help!! I'd still be intrested in getting the checkbox method to work, but this will work for a start.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    For the checkbox method to work, you would have to have a subform bound to a table that had a field for it. If you use an unbound checkbox, checking one person would check them all. It's doable, but more work IMHO.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 05-29-2014, 09:58 PM
  2. Replies: 0
    Last Post: 11-17-2009, 02:35 PM
  3. Replies: 1
    Last Post: 06-02-2009, 04:29 PM
  4. Fix the size of a form in Access 2007
    By Divardo in forum Forms
    Replies: 1
    Last Post: 06-02-2009, 04:23 PM
  5. Access 2007 Form Changes Driving Me Nuts
    By Patrick.Grant01 in forum Forms
    Replies: 3
    Last Post: 05-19-2009, 09:17 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