D
Dave Elliott
I have a form named Time_Hours with a combo on it that looks up the employee
In the criteria of the control (status) in the query it has this code
[Forms]![frmAutoPayrollReport]![Status]
This means that the combo list for the employee will only show active or
archived employees depending on the status selected via the criteria used
via the main form, I need for it to show all records
Normally the whole form of which Time_Hours is a sub-form on shows only the
records with an active status
However if the main form is opened with a status of archived then the
sub-form still shows only archived employees
and vise versa for the status of active
If the main form is opened with a status of archived, then I need the
employee list on the sub-form Time_Hours to show ALL the records for the
sub-form, active and archived
The Main form has 2 option buttons on it which are used to to set the status
of the whole record.
Here is what I think I need;
If Forms!TimeCards!Status =1 Then ' this means status is archived
Forms!Time_Hours!EmployeeID!Status = 1,2 'either active or archived
End If
In the criteria of the control (status) in the query it has this code
[Forms]![frmAutoPayrollReport]![Status]
This means that the combo list for the employee will only show active or
archived employees depending on the status selected via the criteria used
via the main form, I need for it to show all records
Normally the whole form of which Time_Hours is a sub-form on shows only the
records with an active status
However if the main form is opened with a status of archived then the
sub-form still shows only archived employees
and vise versa for the status of active
If the main form is opened with a status of archived, then I need the
employee list on the sub-form Time_Hours to show ALL the records for the
sub-form, active and archived
The Main form has 2 option buttons on it which are used to to set the status
of the whole record.
Here is what I think I need;
If Forms!TimeCards!Status =1 Then ' this means status is archived
Forms!Time_Hours!EmployeeID!Status = 1,2 'either active or archived
End If