Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2010
    Posts
    18

    Guidance on grouping students and staff requested

    Hi All--I just need some info on making a type of scheduling form in which users can easily assign students and staff to different groups or teams. Here are the tables:
    tblStaff: StaffID, StaffLname, StaffFname, TeamID, (more staff-related fields)
    tblStudents: StudID, StudLname, StudFname, TeamID, (more student fields)
    tblTeams: TeamID, Team

    During the school year, students will be grouped along with multiple staff members in teams. These groups may change.

    Users would like a fast and easy way to change the TeamID values of students and staff--without having to open the student and/or staff entry/edit forms and click a combo or listbox.



    Any guidance would be appreciated. Thanks!

  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,632
    You want to change TeamID en masse? All students and/or teachers with a TeamID will all move to the new TeamID? Then you need VBA code. A form would get user input for current TeamID and new TeamID and select teachers or students or both. Then code would update all records having current TeamID to new TeamID in the appropriate tabes. Problem is, what if new TeamID is already in use? And if the assignments are made individually this won't apply. I am afraid there may not be a shortcut for managing data this dynamic.
    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
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Here's a simple one, just select the staff and students you want to change (can be one, can be many, I am using multi select list boxes) then choose the team you want to transfer or assign them to and click the button.

  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,632
    Ooops, I forgot about multi-select listboxes (I've just never had to use them). Something was tickling back of my brain but I forgot to follow up. Will have to select each indivdual but can be done all at once on one form. Think this is fastest way for you do group updates and best way to go for your situation. Some have said very long lists (thousands) can cause problems, but I have not encountered that with any of my comboboxes. Am guessing your lists won't be so long.
    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.

  5. #5
    Join Date
    Sep 2010
    Posts
    18
    Thanks rpeare. A simple one? That was a nifty piece of code; thanks for the attachment. And, thanks to both of you for your time.

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I love list boxes, if you saw some of the stuff I'm doing with them you'd realize how simple this is

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

Similar Threads

  1. Record of staff transfers
    By coffeeking in forum Access
    Replies: 1
    Last Post: 11-16-2010, 11:17 PM
  2. Replies: 0
    Last Post: 07-19-2010, 10:29 AM
  3. need guidance in DLookup
    By koolbugs in forum Forms
    Replies: 3
    Last Post: 03-22-2010, 09:15 AM
  4. Need guidance on database
    By yak600 in forum Access
    Replies: 0
    Last Post: 08-04-2009, 07:46 AM
  5. Help requested for calculating age
    By techexpressinc in forum Queries
    Replies: 3
    Last Post: 01-28-2009, 11:29 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