R
Randel Bjorkquist
Hello,
This is my first attempt to try and migrate an existing Access database (a
standard Access database mdb file) to an Access Project adp file. All data
transfer, table, view, stored procedure and function creation aside, I'm
having problems with a form that contains two combo boxes (an employee list
and a shift list) and one check box (terminated). The Shift combo box used
a value list and I used the query defined below fill in the Employee combo
box.
SELECT
EmployeeID,
LastName & [, ] & FirstName & [ ] & MiddleInt AS Employee
FROM
tbl_Employee
WHERE
Terminated = [Forms]![frm_EmployeeSelector]![chk_Terminated]
AND
Shift = [Forms]![frm_EmployeeSelector]![cbo_Shifts]
ORDER BY
LastName & [, ] & FirstName & [ ] & MiddleInt ASC
What I get is an error stating that it doesn't like the "!" signs and
basically I need to re-write my code to use the Input Parameters. I do not
have any Row Source assigned to the form, I don't need any to be or at least
I didn't with the mdb format. All I'm trying to do here is to filter out
all unwanted employeesloaded in. I want to be able to display in the
Employee combo box, all employees for 1st shift (Shift combo box set to 1),
that are not terminated (the Terminated check box not checked). Can someone
help me here?
Thanks in advance,
Randel Bjorkquist
This is my first attempt to try and migrate an existing Access database (a
standard Access database mdb file) to an Access Project adp file. All data
transfer, table, view, stored procedure and function creation aside, I'm
having problems with a form that contains two combo boxes (an employee list
and a shift list) and one check box (terminated). The Shift combo box used
a value list and I used the query defined below fill in the Employee combo
box.
SELECT
EmployeeID,
LastName & [, ] & FirstName & [ ] & MiddleInt AS Employee
FROM
tbl_Employee
WHERE
Terminated = [Forms]![frm_EmployeeSelector]![chk_Terminated]
AND
Shift = [Forms]![frm_EmployeeSelector]![cbo_Shifts]
ORDER BY
LastName & [, ] & FirstName & [ ] & MiddleInt ASC
What I get is an error stating that it doesn't like the "!" signs and
basically I need to re-write my code to use the Input Parameters. I do not
have any Row Source assigned to the form, I don't need any to be or at least
I didn't with the mdb format. All I'm trying to do here is to filter out
all unwanted employeesloaded in. I want to be able to display in the
Employee combo box, all employees for 1st shift (Shift combo box set to 1),
that are not terminated (the Terminated check box not checked). Can someone
help me here?
Thanks in advance,
Randel Bjorkquist