J
JohnE
I am writing a series of SELECT statements and in some of
them I would like to have it where if the combobox is left
empty, it selects and displays all of the items that are
in the list or it displays only the selected item. Here
is one of the SELECT statements that would contain it. It
would be for the AND part only.
Me.lstClientSubProcessTaskListing.RowSource = _
"SELECT " & _
"PRAProjectRiskAssessmentDetailID, " & _
"ClientCode, " & _
"Status, " & _
"TargetCompletionDate, " & _
"SubProcess, " & _
"Component, " & _
"ResponsibleTeamMember " & _
"FROM usrtblPRAProjectRiskAssessmentDetail " & _
"WHERE (((ClientCode)=[Forms]
[usrfrmClientSubProcessTaskList]![ClientCode])) " & _
"AND (((SubProcess)=[Forms]!
[usrfrmClientSubProcessTaskList]![cbxFilterSort2])) " & _
"ORDER BY TargetCompletionDate;"
Any response is appreciative.
*** John
them I would like to have it where if the combobox is left
empty, it selects and displays all of the items that are
in the list or it displays only the selected item. Here
is one of the SELECT statements that would contain it. It
would be for the AND part only.
Me.lstClientSubProcessTaskListing.RowSource = _
"SELECT " & _
"PRAProjectRiskAssessmentDetailID, " & _
"ClientCode, " & _
"Status, " & _
"TargetCompletionDate, " & _
"SubProcess, " & _
"Component, " & _
"ResponsibleTeamMember " & _
"FROM usrtblPRAProjectRiskAssessmentDetail " & _
"WHERE (((ClientCode)=[Forms]
[usrfrmClientSubProcessTaskList]![ClientCode])) " & _
"AND (((SubProcess)=[Forms]!
[usrfrmClientSubProcessTaskList]![cbxFilterSort2])) " & _
"ORDER BY TargetCompletionDate;"
Any response is appreciative.
*** John