A
Ana
Hi,
In a form I have a combo box (comboA) where I select a client (CLIENT_NAME)
and then with the following command, I display a report:
Dim stDocName As String
Dim strSQL As String
stDocName = "Client Report"
strSQL = "[CLIENT_ID] =" & Me![CLIENT_ID]
DoCmd.OpenReport stDocName, acViewPreview, WhereCondition:=strSQL
CLIENT_ID, CLIENT_NAME and CLIENT _DPT form part of the combo box.
I would like to add a second combo box (comboB) so that I can select
CLIENT_DPT. Unfortunately, the above command won't for comboB even though
both combo boxes have CLIENT_ID in common.
Howto fix it?
TIA
Ana
A2k -> SQLserver2k
In a form I have a combo box (comboA) where I select a client (CLIENT_NAME)
and then with the following command, I display a report:
Dim stDocName As String
Dim strSQL As String
stDocName = "Client Report"
strSQL = "[CLIENT_ID] =" & Me![CLIENT_ID]
DoCmd.OpenReport stDocName, acViewPreview, WhereCondition:=strSQL
CLIENT_ID, CLIENT_NAME and CLIENT _DPT form part of the combo box.
I would like to add a second combo box (comboB) so that I can select
CLIENT_DPT. Unfortunately, the above command won't for comboB even though
both combo boxes have CLIENT_ID in common.
Howto fix it?
TIA
Ana
A2k -> SQLserver2k