G
Guest
I have the following code that I need to choose and item in the cboDepartment
and I need it to pull from specific tables based on what is chosen in the
department. The problem is that it is not populating the cboReportName. Here
is what I have:
Private Sub cboDepartment_AfterUpdate()
On Error Resume Next
Select Case cboDepartment.Value
Case "Business Cards"
cboReportName.RowSource = "tblManualWrkListBusCards"
Case "Canada CREW"
cboReportName.RowSource = "tblManualWrkListCanadaCREW"
Case "Canada FEW"
cboReportName.RowSource = "tblManualWrkListCanadaFEW"
Case "CITS"
cboReportName.RowSource = "tblManualWrkListCITS"
Case "CREW"
cboReportName.RowSource = "tblManualWrkListCREW"
Case "Identity Fraud"
cboReportName.RowSource = "tblManualWrkListIDFraud"
Case "RS"
cboReportName.RowSource = "tblManualWrkListRS"
Case "Smith Barney"
cboReportName.RowSource = "tblManualWrkListSmithBarney"
Case "Transaction Fraud"
cboReportName.RowSource = "tblManualWrkListTransFraud"
End Select
End Sub
and I need it to pull from specific tables based on what is chosen in the
department. The problem is that it is not populating the cboReportName. Here
is what I have:
Private Sub cboDepartment_AfterUpdate()
On Error Resume Next
Select Case cboDepartment.Value
Case "Business Cards"
cboReportName.RowSource = "tblManualWrkListBusCards"
Case "Canada CREW"
cboReportName.RowSource = "tblManualWrkListCanadaCREW"
Case "Canada FEW"
cboReportName.RowSource = "tblManualWrkListCanadaFEW"
Case "CITS"
cboReportName.RowSource = "tblManualWrkListCITS"
Case "CREW"
cboReportName.RowSource = "tblManualWrkListCREW"
Case "Identity Fraud"
cboReportName.RowSource = "tblManualWrkListIDFraud"
Case "RS"
cboReportName.RowSource = "tblManualWrkListRS"
Case "Smith Barney"
cboReportName.RowSource = "tblManualWrkListSmithBarney"
Case "Transaction Fraud"
cboReportName.RowSource = "tblManualWrkListTransFraud"
End Select
End Sub