All,
I'd appreciate any help that can be offered, I've searched through many pages of posts on Comboboxes but not seem to fit the problem I'm having, either that or I'm missing the answer as I'm an access newbie.
I'm 95% of the way to completing a project to allow payroll staff to log overpayments via an access form (frmoverpayments) which populates tbloverpayments. This is joined one to one with a list of 4000 employees (tblpersonnel), the ID field populates a few other fields on the form via the following code so that the payroll staff don't need to populate all the details.
Private Sub cboEmpID_Change()
Me.SAPID.Value = Me.cboEmpID.Column(0)
Me.FirstName.Value = Me.cboEmpID.Column(1)
Me.Surname.Value = Me.cboEmpID.Column(2)
Me.EmpSubgroup.Value = Me.cboEmpID.Column(3)
Me.Location.Value = Me.cboEmpID.Column(5)
Me.BusGroup.Value = Me.cboEmpID.Column(6)
Me.Email.Value = Me.cboEmpID.Column(4)
End Sub
This part works fine, as does the code I'm written to email employees via DoCmd.SendObject
The issue I have is around a second Combobox on the same form, cboRemOfficer which is a list of 20 people from table tblRemOfficer (who are also included in the larger list of 4000 employees) as they're employees also.
The name of the payroll officer hasn't been saving into the audit database or on the form as it's unbound, but when I change the field to bound it somehow links to the employee field on the form and both combo boxes change at the same time.
No matter what I do I' can't seem to have the second combobox bound and independent.
Any help would be appreciated.
I've attached a winzip version with all confidential info removed etc.
Thanks
David
I'd appreciate any help that can be offered, I've searched through many pages of posts on Comboboxes but not seem to fit the problem I'm having, either that or I'm missing the answer as I'm an access newbie.
I'm 95% of the way to completing a project to allow payroll staff to log overpayments via an access form (frmoverpayments) which populates tbloverpayments. This is joined one to one with a list of 4000 employees (tblpersonnel), the ID field populates a few other fields on the form via the following code so that the payroll staff don't need to populate all the details.
Private Sub cboEmpID_Change()
Me.SAPID.Value = Me.cboEmpID.Column(0)
Me.FirstName.Value = Me.cboEmpID.Column(1)
Me.Surname.Value = Me.cboEmpID.Column(2)
Me.EmpSubgroup.Value = Me.cboEmpID.Column(3)
Me.Location.Value = Me.cboEmpID.Column(5)
Me.BusGroup.Value = Me.cboEmpID.Column(6)
Me.Email.Value = Me.cboEmpID.Column(4)
End Sub
This part works fine, as does the code I'm written to email employees via DoCmd.SendObject
The issue I have is around a second Combobox on the same form, cboRemOfficer which is a list of 20 people from table tblRemOfficer (who are also included in the larger list of 4000 employees) as they're employees also.
The name of the payroll officer hasn't been saving into the audit database or on the form as it's unbound, but when I change the field to bound it somehow links to the employee field on the form and both combo boxes change at the same time.
No matter what I do I' can't seem to have the second combobox bound and independent.
Any help would be appreciated.
I've attached a winzip version with all confidential info removed etc.
Thanks
David