Hi
Can someone help me solve my access woes.
I want to query the values in a table with the values in the field of another table but... i need to loop through the records in the second table using another field. For example, KEY_CERTIFICATES (table1) contains a field called CertificateID. EMPLOYEE_CERTS (table2) contains a field called CertificateID and another called EmployeeID. I simply want to find out those employees that haven't got all (or any) of the key certificates.
Perhaps this might help
KEY_CERTIFICATES (table1)
CertID
1
2
3
EMPLOYEE_CERTS (table2)
EmployeeID CertID
1 ............. 1
1 ............. 2
1 ............. 3
4 ............. 1
4 ..............7
4 ..............8
5 ..............9
5 .............10
5 .............18
As you can see, the second and third EmployeeID (4,5) would flag up because they have not got all the key certificates or haven't got any.
Would appreciate some wisdom from a programmer. I have tried an unmatched query and tried also using a For loop with an IF statement inside. The precise code alludes me.
Kind regards
Richard
Can someone help me solve my access woes.
I want to query the values in a table with the values in the field of another table but... i need to loop through the records in the second table using another field. For example, KEY_CERTIFICATES (table1) contains a field called CertificateID. EMPLOYEE_CERTS (table2) contains a field called CertificateID and another called EmployeeID. I simply want to find out those employees that haven't got all (or any) of the key certificates.
Perhaps this might help
KEY_CERTIFICATES (table1)
CertID
1
2
3
EMPLOYEE_CERTS (table2)
EmployeeID CertID
1 ............. 1
1 ............. 2
1 ............. 3
4 ............. 1
4 ..............7
4 ..............8
5 ..............9
5 .............10
5 .............18
As you can see, the second and third EmployeeID (4,5) would flag up because they have not got all the key certificates or haven't got any.
Would appreciate some wisdom from a programmer. I have tried an unmatched query and tried also using a For loop with an IF statement inside. The precise code alludes me.
Kind regards
Richard