The green vba button is disabled at work, sorry about that...Here's my switchboard: I want to make "Macros_Create_the_Report" automatically follow the previous one without any clicking.'------------------------------------------------------------' mcr00_Switchboard_Macros_Make_a_SelectionFunction mcr00_Switchboard_Macros_Make_a_Selection() DoCmd.OpenQuery "Selection_1 (User Selection Here)", acViewDesign, acEditEnd Function'------------------------------------------------------------' mcr00_Switchboard_Macros_Create_the_Report''------------------------------------------------------------Function mcr00_Switchboard_Macros_Create_the_Report() DoCmd.RunMacro "mcr03_Identify Mgmt Levels", , ""End Function--------------------------------------------------------Here mcr03 in detail (it's a mixture of select,append, create, update queries) and they rely on "Selection_1 (User Selection Here)":Function mcr03_Identify_Mgmt_Levels() DoCmd.Echo False, "" DoCmd.SetWarnings False DoCmd.OpenQuery "Reporting Relationship_01a (Identify Supervisors)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_01b (add direct reports outside of unit)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02a (Is employee also a supervisor)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02b (Group 2a)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02c (Update Reporting Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_02d (Counter Up)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_03 (Summary of All Supervisors)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_04a (Create Tbl for Current TopDown Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_04b (Create Tbl for Cur Bottom Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_04c (Update Highest Level Mgmt)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05a (Update Mgrs of Next Level)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_05b (Update Current Top Down Lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_06 (All mgr grp 2 min reporting mgmt lvl)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_07 (update mgmt rpt lvl for all staff)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_08a (Rpt Lvl 9 for unknown reportings)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_08b (9 - rpt supervisor not in unit)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_08c (9 - Reporting Supervisor Pos Vacant)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_08d (9 - Pos has not reporting relation)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_08e (9 - On assignment - no position num)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_08f (9 - No Pos)", acViewNormal, acEdit DoCmd.OpenQuery "Reporting Relationship_09 (Final tbl)", acViewNormal, acEdit Call CloseAllTblAndQry DoCmd.Echo True, "" DoCmd.SetWarnings TrueEnd Function
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.