G
Guest
Some while ago I thought this was a relatively simple problem. Now I know it
is not. I have a training records database. The training session
information is in a table (tblSession, with SessionID as the PK). Attendance
information is in another table (tblEnrollment) in which SessionID is the FK.
These are presented on screen by means of form/subform
(frmSession/fsubEnrollment).
Names in in tblEnrollment (fsubEnrollment) are selected from a combo box
(cboName), which has as its record source the query qryEmployee, drawn from
tblEmployee. The database works as expected, but there is something I would
like to change if it is possible. The names of former employees need to show
up on old training records, but not in cboName. I can add an Active (Y/N)
field to tblEmployee and use it to limit the results of qryEmployee. This
restricts the combo box list to active employees only, but it also prevents
the names of former employees from being displayed in cboName (although the
EmployeeID is still stored in the underlying table). I posted this question
a while age. the only response was to suggest as the combo box row source:
SELECT * FROM tblEmployees WHERE Active = True OR EmployeeID =
Forms!frmSession!cboName, but that didn't work.
I have attempted to place a text box on top of the text area of the combo
box. The text box contains the employee name from the query. It almost
works, except that autocomplete no longer works for the combo box. The
drop-down list works, but since the text box is on top of the combo box
autocomplete is also buried. I have tried various ways of getting that the
text-box-on-top-of-combo-box system to work, but the more I try the more I
conclude that it is the wrong approach.
Is there a way to solve this problem?
is not. I have a training records database. The training session
information is in a table (tblSession, with SessionID as the PK). Attendance
information is in another table (tblEnrollment) in which SessionID is the FK.
These are presented on screen by means of form/subform
(frmSession/fsubEnrollment).
Names in in tblEnrollment (fsubEnrollment) are selected from a combo box
(cboName), which has as its record source the query qryEmployee, drawn from
tblEmployee. The database works as expected, but there is something I would
like to change if it is possible. The names of former employees need to show
up on old training records, but not in cboName. I can add an Active (Y/N)
field to tblEmployee and use it to limit the results of qryEmployee. This
restricts the combo box list to active employees only, but it also prevents
the names of former employees from being displayed in cboName (although the
EmployeeID is still stored in the underlying table). I posted this question
a while age. the only response was to suggest as the combo box row source:
SELECT * FROM tblEmployees WHERE Active = True OR EmployeeID =
Forms!frmSession!cboName, but that didn't work.
I have attempted to place a text box on top of the text area of the combo
box. The text box contains the employee name from the query. It almost
works, except that autocomplete no longer works for the combo box. The
drop-down list works, but since the text box is on top of the combo box
autocomplete is also buried. I have tried various ways of getting that the
text-box-on-top-of-combo-box system to work, but the more I try the more I
conclude that it is the wrong approach.
Is there a way to solve this problem?