So, I know how crazy this is going to sound but of course - higher ups want it and don't want to spent any money and basically won't take no for an answer.
I have 4 tables across 4 Access databases 5+ million records total. I have a 5th Access database where I am linking in those tables and I have a search form (frmSearch). I have a union query running a query across all four tables based on text box inputs and combo boxes on frmSearch. Its a real pain and I know its because of the amount of data.
This is basically what the union query looks like. Is there a better way with staying with Access front and back end?
I have 4 tables across 4 Access databases 5+ million records total. I have a 5th Access database where I am linking in those tables and I have a search form (frmSearch). I have a union query running a query across all four tables based on text box inputs and combo boxes on frmSearch. Its a real pain and I know its because of the amount of data.
This is basically what the union query looks like. Is there a better way with staying with Access front and back end?
SELECT * FROM A_G WHERE npi = [Forms]![frmSearch].[txtNPI] or nppes_provider_last_org_name = [Forms]![frmSearch].[txtLastName] or nppes_provider_zip = [Forms]![frmSearch].[txtZipCode];
Union
Select * FROM H_N WHERE npi = [Forms]![frmSearch].[txtNPI] or nppes_provider_last_org_name = [Forms]![frmSearch].[txtLastName] or nppes_provider_zip = [Forms]![frmSearch].[txtZipCode];
Union
Select * FROM O_S WHERE npi = [Forms]![frmSearch].[txtNPI] or nppes_provider_last_org_name = [Forms]![frmSearch].[txtLastName] or nppes_provider_zip = [Forms]![frmSearch].[txtZipCode];
UNION Select * FROM T_Z WHERE npi = [Forms]![frmSearch].[txtNPI] or nppes_provider_last_org_name = [Forms]![frmSearch].[txtLastName] or nppes_provider_zip = [Forms]![frmSearch].[txtZipCode];