G
Guest
Hello,
I have a form with several fields: ID Number, LName, Fname, Employer,
Employer1 Depts and Employer2 Depts.
I want to enter data in first 3 fields (text) which will be inserted to
table 1.
I want to select a value from a lookup table for employer. Based on the
Employer chosen, either Emp1 depts OR Emp2 depts drop down will become
active.
Finally, select a dept from the active dropdown.
Am I thinking correctly in the following:
For the OnChange event when the employer is selected from the dropdown, I
want to do this:
IF employer = EMP1 then
1.1 enable cboEMP1
1.2 select deptname from LkTblDepts where Employee = EMP1
Else If employer = EMP2 then
1.1 enable cboEMP2
1.2 select deptname from LkTblDepts where Employee = EMP2
End IF
After all data is entered and values are selected, they need to be inserted
into the tables.
If this is not correct, can anyone advise on how I can code this
functionality?
TIA,
Rich
I have a form with several fields: ID Number, LName, Fname, Employer,
Employer1 Depts and Employer2 Depts.
I want to enter data in first 3 fields (text) which will be inserted to
table 1.
I want to select a value from a lookup table for employer. Based on the
Employer chosen, either Emp1 depts OR Emp2 depts drop down will become
active.
Finally, select a dept from the active dropdown.
Am I thinking correctly in the following:
For the OnChange event when the employer is selected from the dropdown, I
want to do this:
IF employer = EMP1 then
1.1 enable cboEMP1
1.2 select deptname from LkTblDepts where Employee = EMP1
Else If employer = EMP2 then
1.1 enable cboEMP2
1.2 select deptname from LkTblDepts where Employee = EMP2
End IF
After all data is entered and values are selected, they need to be inserted
into the tables.
If this is not correct, can anyone advise on how I can code this
functionality?
TIA,
Rich