Hello!
This EMPLOYEE/ADDRESS database should be easy (famous last words!)... my problemo....
I have two tables, an EMP_DETAILS (name, dob etc) and an EMP_ADDRESS table. An employee can can more than one address. I have 2 forms to view the two tables.
The EMP_DETAILS table is populated and each record has a primary key (EMP_ID), the EMP_ADDRESS table is not populated.
On the form for the EMP_DETAILS I have a command button to open the form for EMP_ADDRESS (for inputting). I have set this to open the second form on the record relating to the current EMP_ID as displayed on the first form.
However when I click the button, the new form opens with the EMP_ID = "0" thus not automatically relating the new EMP_ADDRESS record with the current EMP_ID.
Am I doing something wrong, as I said this looked easy!!!
If you can help I'd be dead chuffed!
Cheers , Mike
This EMPLOYEE/ADDRESS database should be easy (famous last words!)... my problemo....
I have two tables, an EMP_DETAILS (name, dob etc) and an EMP_ADDRESS table. An employee can can more than one address. I have 2 forms to view the two tables.
The EMP_DETAILS table is populated and each record has a primary key (EMP_ID), the EMP_ADDRESS table is not populated.
On the form for the EMP_DETAILS I have a command button to open the form for EMP_ADDRESS (for inputting). I have set this to open the second form on the record relating to the current EMP_ID as displayed on the first form.
However when I click the button, the new form opens with the EMP_ID = "0" thus not automatically relating the new EMP_ADDRESS record with the current EMP_ID.
Am I doing something wrong, as I said this looked easy!!!
If you can help I'd be dead chuffed!
Cheers , Mike