Good day!
I'm trying to figure out a way to dynamically create INNER JOIN queries based on the existing queries in my access database.
Another:
Also included, is a screenshot of the actual query design:
And another:
Does anyone have any suggestions?
I can see a pattern in the INNER JOIN's, but I'm having trouble putting this into a VBA program.
Any help would be GREATLY appreciated. I'm willing to compensate your time!
________________________________________
Buddha. Dharma. Sangha.
I'm trying to figure out a way to dynamically create INNER JOIN queries based on the existing queries in my access database.
Code:
SELECT EER_LA_Acct_paid_off.Employee, EER_LA_Acct_paid_off.Acct_paid_off, EER_LA_All_required_docs.All_required_docs, EER_LA_Title_signed_correctly.Title_signed_correctly, EER_LA_Correct_docs_prepared.Correct_docs_prepared, EER_LA_Title_sent_correct_party.Title_sent_correct_party, EER_LA_Tax_check_or_filing_fee.Tax_check_or_filing_fee, EER_LA_Charged_correct_GL.Charged_correct_GL, EER_LA_Required_notes_memo_scrn.Required_notes_memo_scrn
FROM ((((((EER_LA_Acct_paid_off INNER JOIN EER_LA_All_required_docs ON EER_LA_Acct_paid_off.Employee=EER_LA_All_required_docs.Employee) INNER JOIN EER_LA_Charged_correct_GL ON EER_LA_All_required_docs.Employee=EER_LA_Charged_correct_GL.Employee) INNER JOIN EER_LA_Correct_docs_prepared ON EER_LA_Charged_correct_GL.Employee=EER_LA_Correct_docs_prepared.Employee) INNER JOIN (EER_LA_Required_notes_memo_scrn INNER JOIN EER_LA_Tax_check_or_filing_fee ON EER_LA_Required_notes_memo_scrn.Employee=EER_LA_Tax_check_or_filing_fee.Employee) ON EER_LA_Correct_docs_prepared.Employee=EER_LA_Required_notes_memo_scrn.Employee) INNER JOIN EER_LA_Title_sent_correct_party ON EER_LA_Tax_check_or_filing_fee.Employee=EER_LA_Title_sent_correct_party.Employee) INNER JOIN EER_LA_Title_signed_correctly ON EER_LA_Title_sent_correct_party.Employee=EER_LA_Title_signed_correctly.Employee) INNER JOIN EER_LA_Charged_correct_GL AS EER_LA_Charged_correct_GL_1 ON EER_LA_Title_signed_correctly.Employee=EER_LA_Charged_correct_GL_1.Employee;
Another:
Also included, is a screenshot of the actual query design:

Code:
SELECT [EER_PD_File_match_letter - Errors].Employee, [EER_PD_File_match_letter - Errors].File_match_letter, [EER_PD_Paid_contain_letter - Errors].Paid_contain_letter, [EER_PD_Pending_cabinet - Errors].Pending_cabinet, [EER_PD_Real_estate_sorted - Errors].Real_estate_sorted, [EER_PD_Record_coversheet - Errors].Record_coversheet
FROM ((([EER_PD_File_match_letter - Errors] INNER JOIN [EER_PD_Paid_contain_letter - Errors] ON [EER_PD_File_match_letter - Errors].Employee = [EER_PD_Paid_contain_letter - Errors].Employee) INNER JOIN [EER_PD_Pending_cabinet - Errors] ON [EER_PD_Paid_contain_letter - Errors].Employee = [EER_PD_Pending_cabinet - Errors].Employee) INNER JOIN [EER_PD_Real_estate_sorted - Errors] ON [EER_PD_Pending_cabinet - Errors].Employee = [EER_PD_Real_estate_sorted - Errors].Employee) INNER JOIN [EER_PD_Record_coversheet - Errors] ON [EER_PD_Real_estate_sorted - Errors].Employee = [EER_PD_Record_coversheet - Errors].Employee;
And another:
Code:
SELECT [EER_REP_Account_paid_off - Errors].Employee, [EER_REP_Account_paid_off - Errors].Account_paid_off, [EER_REP_All_collateral_released - Errors].All_collateral_released, [EER_REP_ALSaccountMatchPaperwork - Errors].ALS_match_paperwork, [EER_REP_AMZM_comments_correct - Errors].AMZM_comments_correct, [EER_REP_Appropriate_research - Errors].Appropriate_research, [EER_REP_Bank_successions - Errors].Bank_successions, [EER_REP_Cnty_recording_info_correct - Errors].Cnty_recording_info_correct, [EER_REP_Cost_center_correct - Errors].Cost_center_correct, [EER_REP_Cust_info_correct - Errors].Cust_info_correct, [EER_REP_Legal_correct_legible - Errors].Legal_correct_legible, [EER_REP_Release_form_correct - Errors].Release_form_correct, [EER_REP_Release_signed_notarized - Errors].Release_signed_notarized, [EER_REP_Special_paid_instructions_followed - Errors].Special_paid_instructions_followed
FROM ((((((((((([EER_REP_Account_paid_off - Errors] INNER JOIN [EER_REP_All_collateral_released - Errors] ON [EER_REP_Account_paid_off - Errors].Employee = [EER_REP_All_collateral_released - Errors].Employee) INNER JOIN [EER_REP_ALSaccountMatchPaperwork - Errors] ON [EER_REP_All_collateral_released - Errors].Employee = [EER_REP_ALSaccountMatchPaperwork - Errors].Employee) INNER JOIN [EER_REP_AMZM_comments_correct - Errors] ON [EER_REP_ALSaccountMatchPaperwork - Errors].Employee = [EER_REP_AMZM_comments_correct - Errors].Employee) INNER JOIN [EER_REP_Appropriate_research - Errors] ON [EER_REP_AMZM_comments_correct - Errors].Employee = [EER_REP_Appropriate_research - Errors].Employee) INNER JOIN [EER_REP_Bank_successions - Errors] ON [EER_REP_Appropriate_research - Errors].Employee = [EER_REP_Bank_successions - Errors].Employee) INNER JOIN [EER_REP_Cnty_recording_info_correct - Errors] ON [EER_REP_Bank_successions - Errors].Employee = [EER_REP_Cnty_recording_info_correct - Errors].Employee) INNER JOIN [EER_REP_Cost_center_correct - Errors] ON [EER_REP_Cnty_recording_info_correct - Errors].Employee = [EER_REP_Cost_center_correct - Errors].Employee) INNER JOIN [EER_REP_Cust_info_correct - Errors] ON [EER_REP_Cost_center_correct - Errors].Employee = [EER_REP_Cust_info_correct - Errors].Employee) INNER JOIN [EER_REP_Legal_correct_legible - Errors] ON [EER_REP_Cust_info_correct - Errors].Employee = [EER_REP_Legal_correct_legible - Errors].Employee) INNER JOIN [EER_REP_Release_form_correct - Errors] ON [EER_REP_Legal_correct_legible - Errors].Employee = [EER_REP_Release_form_correct - Errors].Employee) INNER JOIN [EER_REP_Release_signed_notarized - Errors] ON [EER_REP_Release_form_correct - Errors].Employee = [EER_REP_Release_signed_notarized - Errors].Employee) INNER JOIN [EER_REP_Special_paid_instructions_followed - Errors] ON [EER_REP_Release_signed_notarized - Errors].Employee = [EER_REP_Special_paid_instructions_followed - Errors].Employee;
Does anyone have any suggestions?
I can see a pattern in the INNER JOIN's, but I'm having trouble putting this into a VBA program.
Any help would be GREATLY appreciated. I'm willing to compensate your time!
________________________________________
