I'd like to re-visit an old problem. If the problem required viewing the database I can strip out the data and e-mail it. I don't want to post it though on the forums.
On the combo box on the form
Row Source Type = table/query:
Row Source = SELECT EmployeeMaster.EmployeeID, Lastname & ", " & Firstname AS Fullname FROM EmployeeMaster
ORDER BY EmployeeMaster.LastName, EmployeeMaster.FirstName;
That works good. I see all the names as I would expect to see them.
On the Query that serves as the data source for the form:
SELECT tblAccidentLog.AccNumber, tblAccidentLog.AccDate, tblAccidentLog.ClassType, tblAccidentLog.DeptName, [Lastname] & ", " & [Firstname] AS Fullname
FROM EmployeeMaster, tblAccidentLog
WHERE ((([Lastname] & ", " & [Firstname])=[Forms]![YourFormName]![YourComboBoxName]))
ORDER BY EmployeeMaster.LastName;
Then when I select a name from the combo box I get a pop up window asking me to enter a parameter value.
=[Forms]![frm_MenuSwitchboard]![ComboBySelectedEmployee]
I type in a name of a person who I know has been involved in accident I get nothing on the form.
I'd really appreciate it if someone can help me get this working. Thanks.
On the combo box on the form
Row Source Type = table/query:
Row Source = SELECT EmployeeMaster.EmployeeID, Lastname & ", " & Firstname AS Fullname FROM EmployeeMaster
ORDER BY EmployeeMaster.LastName, EmployeeMaster.FirstName;
That works good. I see all the names as I would expect to see them.
On the Query that serves as the data source for the form:
SELECT tblAccidentLog.AccNumber, tblAccidentLog.AccDate, tblAccidentLog.ClassType, tblAccidentLog.DeptName, [Lastname] & ", " & [Firstname] AS Fullname
FROM EmployeeMaster, tblAccidentLog
WHERE ((([Lastname] & ", " & [Firstname])=[Forms]![YourFormName]![YourComboBoxName]))
ORDER BY EmployeeMaster.LastName;
Then when I select a name from the combo box I get a pop up window asking me to enter a parameter value.
=[Forms]![frm_MenuSwitchboard]![ComboBySelectedEmployee]
I type in a name of a person who I know has been involved in accident I get nothing on the form.
I'd really appreciate it if someone can help me get this working. Thanks.