S
Sharon
In my form, I have created a combo box with the control source as a union
query, shown below. However, when I click on the combo box, it opens up andn
shows the correct information, but it won't let me make a selection.
SELECT tblExpenseReport.ExpenseReportNumber as ReportNumber
FROM tblExpenseReport
UNION SELECT tblTravelExpenseReport.TravelExpenseReportNumber as ReportNumber
FROM tblTravelExpenseReport;
UNION SELECT tblCheckRequest.CheckRequestNum as ReportNumber
FROM tblCheckRequest;
UNION SELECT tblPurchaseOrder.PurchaseOrderNum as ReportNumber
FROM tblPurchaseOrder;
I was then going to do an IF statement something to the affect that IF
another field is equal to "Cash", then just show the ExpenseReportNumbers,
etc.
Maybe I should not be doing it with a union query but just with code? If
MethodofPayment is "Cash" then show only the ExpenseReportNumbers?
query, shown below. However, when I click on the combo box, it opens up andn
shows the correct information, but it won't let me make a selection.
SELECT tblExpenseReport.ExpenseReportNumber as ReportNumber
FROM tblExpenseReport
UNION SELECT tblTravelExpenseReport.TravelExpenseReportNumber as ReportNumber
FROM tblTravelExpenseReport;
UNION SELECT tblCheckRequest.CheckRequestNum as ReportNumber
FROM tblCheckRequest;
UNION SELECT tblPurchaseOrder.PurchaseOrderNum as ReportNumber
FROM tblPurchaseOrder;
I was then going to do an IF statement something to the affect that IF
another field is equal to "Cash", then just show the ExpenseReportNumbers,
etc.
Maybe I should not be doing it with a union query but just with code? If
MethodofPayment is "Cash" then show only the ExpenseReportNumbers?