R
Ron
I have a simple form with two combo boxes. The first combo box allows
selection of an employee; AfterUpdate the second should requery for only that
employees clients. Once I select the employee, I get an error - basically
typed incorrectly or too complex. Here are the queries for the combo boxes:
SELECT NullID As EmployeeID, "<All Sales Reps>" As EmployeeName
FROM tblDummy
UNION ALL SELECT tblEmployees.EmployeeID, tblEmployees.EmployeeName
FROM tblEmployees
ORDER BY EmployeeName;
PARAMETERS Forms!fpopCaseSelectV2!cmbEmployeeName Long;
SELECT NullID As CliCode, "< All Customers >" As CliReportingName
FROM tblDummy
UNION ALL SELECT tblBillingMeetingData.CliCode,
tblBillingMeetingData.CliReportingName
FROM tblBillingMeetingData
WHERE (tblBillingMeetingData.BTKName =
[Forms]![fpopCaseSelectV2]![cmbEmployeeName]) OR
([Forms]![fpopCaseSelectV2]![cmbEmployeeName] Is Null)
ORDER BY CliReportingName;
I haven't done a lot of this but I'm guessing (hoping) it's something
simple. Can someone help me out? Thank you.
selection of an employee; AfterUpdate the second should requery for only that
employees clients. Once I select the employee, I get an error - basically
typed incorrectly or too complex. Here are the queries for the combo boxes:
SELECT NullID As EmployeeID, "<All Sales Reps>" As EmployeeName
FROM tblDummy
UNION ALL SELECT tblEmployees.EmployeeID, tblEmployees.EmployeeName
FROM tblEmployees
ORDER BY EmployeeName;
PARAMETERS Forms!fpopCaseSelectV2!cmbEmployeeName Long;
SELECT NullID As CliCode, "< All Customers >" As CliReportingName
FROM tblDummy
UNION ALL SELECT tblBillingMeetingData.CliCode,
tblBillingMeetingData.CliReportingName
FROM tblBillingMeetingData
WHERE (tblBillingMeetingData.BTKName =
[Forms]![fpopCaseSelectV2]![cmbEmployeeName]) OR
([Forms]![fpopCaseSelectV2]![cmbEmployeeName] Is Null)
ORDER BY CliReportingName;
I haven't done a lot of this but I'm guessing (hoping) it's something
simple. Can someone help me out? Thank you.