J
JattilaB
on a form I have two list boxes
listbox 1 name is DepID
no control source
control sorce type is table/query
and rowe sorce is
SELECT [Department].[DepID], [Department].[Department] FROM Department ORDER
BY [Department].[Department];
listbox 2 name is EmpID
no control source
control sorce type is table/query
and rowe sorce is
SELECT distinct Employee.FirstName&" "&Employee.LastName,Employee.JobTitle,
Employee.EmpID FROM Employee WHERE
(((Employee.Department)=[forms]![MainMenu]![DepID])) UNION select distinct
null, null FROM Department
what I am trying to achive is have EmpID update and only list the values
that match from DepID
but at the moment I get this for an error
"The number of colums in the two selected tables or queries of union query
do not match"
any ideas?
listbox 1 name is DepID
no control source
control sorce type is table/query
and rowe sorce is
SELECT [Department].[DepID], [Department].[Department] FROM Department ORDER
BY [Department].[Department];
listbox 2 name is EmpID
no control source
control sorce type is table/query
and rowe sorce is
SELECT distinct Employee.FirstName&" "&Employee.LastName,Employee.JobTitle,
Employee.EmpID FROM Employee WHERE
(((Employee.Department)=[forms]![MainMenu]![DepID])) UNION select distinct
null, null FROM Department
what I am trying to achive is have EmpID update and only list the values
that match from DepID
but at the moment I get this for an error
"The number of colums in the two selected tables or queries of union query
do not match"
any ideas?