Results 1 to 2 of 2
  1. #1
    bamerand is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    2

    Subject: Combo-box with values per department

    Dear all,



    I need assistance in providing guidance and assistance in the following database (I am a newbie with VBA and queries). I have attached the <Personnel.zip>*and here is a description of the purpose of the DB and what I cannot accomplish and called for your expertise.

    The DB is made of 2 tables, those are <Personnel> and <Trainings>, 2 forms, those are <Personnel List> and <Personnel Details>. The <Personnel Details> form consists of two tabs, one is called <General Information>, which contains overall information about employees. The second tab, with which I am having difficulties, is called <Training information>.

    I need to have the <Training information> tab, which is sub-formed with <Trainings> table, to be in continuous combo-box, i.e. for each created employee (the sample contains 4 employees) I need to have the field <Training title> in the combo-box field by department field. Like, if value <HR> is selected in the <Department> field, then the combo-box should list the values that are <Internal Auditor Course> and <Lead Auditor Course>, or if selected value <Maintenance> in <Department> field, then the combo-box should list values that include <Basics in instrumentation>, or if selected value <Construction> in <Department> field, then combo-box should list values that include <Intensive English>. What I was able to accomplish is the <Trainings> table is sub-formed to <Training information> tab and I can physically type the values for each of the trainings attended by all employees (over 2,000 in total).

    The second issue I have is I need to make inactive cells <Issued date> and <Valid date> if the <Permanent> field is checked-in. Alternately, if the <Permanent> field is checked-out, then the cells <Issued date> and <Valid date> should become active.

    I look forward to receiving any support, recommendations, if you have code / DB that has similarities, please post along.

    Link to the DB.

    https://www.dropbox.com/s/cof8hfnt1o...onnel.zip?dl=0

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Sounds like dependent (cascading) comboboxes. Review http://www.datapigtechnologies.com/f...combobox2.html

    Is Trainings table for documenting training done by employees?

    Seem to be missing table to serve as a lookup for training courses.

    Use Conditional Formatting to manage 'inactivation' of textboxes (not 'cells').
    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. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  2. mailto with Subject
    By umarus in forum Programming
    Replies: 4
    Last Post: 12-20-2012, 12:58 PM
  3. can your report name be sent to an email subject
    By Compufreak in forum Access
    Replies: 8
    Last Post: 11-20-2012, 03:03 AM
  4. SendReport - variable subject
    By meikke in forum Programming
    Replies: 1
    Last Post: 01-30-2012, 11:24 AM
  5. Replies: 1
    Last Post: 03-27-2010, 06:13 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