W
weircolin
Hi
I am using the following code to change the values that are being
displayed on a report.
Dim strWhere As String
strWhere = "[Category] = " & Category.Value
If Not (IsNull([Topic Name].Value)) Then
If Not ([Topic Name].Value = "") Then
strWhere = strWhere & " And [Topic Name] = " & [Topic
Name].Value & " And Year = " & cboissueyear.Value & " And Month = " &
cboissuemonth.Value
DoCmd.OpenReport "calculate", acViewPreview, , strWhere
Else
DoCmd.OpenReport "calculate2", acViewPreview, , strWhere
End If
End If
I would like to be able to have it display information when either (or
both) "Year" and "Month" have no selection made.
Can anyone point me in the right direction?
Thanks
Colin
I am using the following code to change the values that are being
displayed on a report.
Dim strWhere As String
strWhere = "[Category] = " & Category.Value
If Not (IsNull([Topic Name].Value)) Then
If Not ([Topic Name].Value = "") Then
strWhere = strWhere & " And [Topic Name] = " & [Topic
Name].Value & " And Year = " & cboissueyear.Value & " And Month = " &
cboissuemonth.Value
DoCmd.OpenReport "calculate", acViewPreview, , strWhere
Else
DoCmd.OpenReport "calculate2", acViewPreview, , strWhere
End If
End If
I would like to be able to have it display information when either (or
both) "Year" and "Month" have no selection made.
Can anyone point me in the right direction?
Thanks
Colin