L
laskowv
I have 3 tables: EMPLOYEE, COMPANY, and TRANSFERS
In EMPLOYEE, EmployeeID is PK with CompanyID as FK. In TRANSFERS,
TransferID is PK, EmployeeID is FK, and there are 2 fields named FromCompany
and ToCompany; which are FK's to COMPANY (CompanyID).
On my Employee Form, I have a command button called "Add Transfers"; which
activates a macro to display the "Transfers" form; after setting the
TRANSFERS.EmployeeID to EMPLOYEE.EmployeeID. The recordsource for this form
is TRANSFERS.
I have 2 combo boxes for the from & to company fields which are each bound,
respectively with the key.
OK -- HOW do I update/populate the EMPLOYEE.CompanyID with the "to-company"
field (Combo16) from the "Transfers" screen? I know it should be something
like:
Me.[EMPLOYEE.CompanyID] = Me.Combo16.Column(0)
I'm confused because this is a "pop up" form. I believe the "LEFT" side of
this statement is incorrect.
Please help this "dummy" out; it will be greatly appreciated.
Thanks.
In EMPLOYEE, EmployeeID is PK with CompanyID as FK. In TRANSFERS,
TransferID is PK, EmployeeID is FK, and there are 2 fields named FromCompany
and ToCompany; which are FK's to COMPANY (CompanyID).
On my Employee Form, I have a command button called "Add Transfers"; which
activates a macro to display the "Transfers" form; after setting the
TRANSFERS.EmployeeID to EMPLOYEE.EmployeeID. The recordsource for this form
is TRANSFERS.
I have 2 combo boxes for the from & to company fields which are each bound,
respectively with the key.
OK -- HOW do I update/populate the EMPLOYEE.CompanyID with the "to-company"
field (Combo16) from the "Transfers" screen? I know it should be something
like:
Me.[EMPLOYEE.CompanyID] = Me.Combo16.Column(0)
I'm confused because this is a "pop up" form. I believe the "LEFT" side of
this statement is incorrect.
Please help this "dummy" out; it will be greatly appreciated.
Thanks.