Hello All,
I am a beginner in MSAccess and have this prob with my query. I have to pull in all the members who have their DOB in Future and i wrote this query. It works but it takes forever to run the query. I dont understand why its taking so long to run the query, i am using Access 97. Before i put any condition it runs really quick, but after i put the condition it doesnt. Please help
Before i put the condition my query is
SELECT elgdep.MEM_SOC_SEC_NUM, elgdep.MEM_DEP_CODE, elgemp.ENR_GRP_NUMBER, elgdep.MEM_EFFEC_DATE, elgdep.MEM_BIRTH_DATE, elgadr.erstat, elgadr.erzpcd
FROM elgadr INNER JOIN (elgemp INNER JOIN elgdep ON elgemp.ENR_SOC_SEC_NUM = elgdep.MEM_SOC_SEC_NUM) ON elgadr.erdpcd = elgdep.MEM_DEP_CODE;
And after i add the condition the query is
SELECT elgdep.MEM_SOC_SEC_NUM, elgdep.MEM_DEP_CODE, elgemp.ENR_GRP_NUMBER, elgdep.MEM_EFFEC_DATE, elgdep.MEM_BIRTH_DATE, elgadr.erstat, elgadr.erzpcd
FROM elgadr INNER JOIN (elgemp INNER JOIN elgdep ON elgemp.ENR_SOC_SEC_NUM = elgdep.MEM_SOC_SEC_NUM) ON elgadr.erdpcd = elgdep.MEM_DEP_CODE
WHERE (((elgdep.MEM_BIRTH_DATE)>=Format([Today's Date],"yyyymmdd")));
I am a beginner in MSAccess and have this prob with my query. I have to pull in all the members who have their DOB in Future and i wrote this query. It works but it takes forever to run the query. I dont understand why its taking so long to run the query, i am using Access 97. Before i put any condition it runs really quick, but after i put the condition it doesnt. Please help
Before i put the condition my query is
SELECT elgdep.MEM_SOC_SEC_NUM, elgdep.MEM_DEP_CODE, elgemp.ENR_GRP_NUMBER, elgdep.MEM_EFFEC_DATE, elgdep.MEM_BIRTH_DATE, elgadr.erstat, elgadr.erzpcd
FROM elgadr INNER JOIN (elgemp INNER JOIN elgdep ON elgemp.ENR_SOC_SEC_NUM = elgdep.MEM_SOC_SEC_NUM) ON elgadr.erdpcd = elgdep.MEM_DEP_CODE;
And after i add the condition the query is
SELECT elgdep.MEM_SOC_SEC_NUM, elgdep.MEM_DEP_CODE, elgemp.ENR_GRP_NUMBER, elgdep.MEM_EFFEC_DATE, elgdep.MEM_BIRTH_DATE, elgadr.erstat, elgadr.erzpcd
FROM elgadr INNER JOIN (elgemp INNER JOIN elgdep ON elgemp.ENR_SOC_SEC_NUM = elgdep.MEM_SOC_SEC_NUM) ON elgadr.erdpcd = elgdep.MEM_DEP_CODE
WHERE (((elgdep.MEM_BIRTH_DATE)>=Format([Today's Date],"yyyymmdd")));