I have users in two locations. Only the users in one location are unable to use command buttons that run reports. Two weeks ago all was fine. I really think this is a network issue since 1. two weeks ago the users were fine 2. the users in the other office are fine.
Here is the code for the command button and function used by the command button - looking for any ideas if this could be something that is being caused by the database and not the network? thanks!!!!:
'loops through the masterbrokerselect list box to make sure at lease one broker
'is selected - if at lease one broker is selected, the report is run, otherwise
'the user gets a messagebox to select at lease one broker
With Me.MasterBrokerSelect
For Each Ditem In .ItemsSelected
If Not IsNull(Ditem) Then
Dlen = 1 + Dlen
End If
Next
End With
If Dlen >= 1 Then
'call brokerfilter function (in the form module) to create the report
'filter based on the brokers selected in the masterbrokerselect list box
strWhere = brokerfilter
'run report using filter
DoCmd.OpenReport "rptVerifyMonthProdSISVsAccess", acViewPreview, , strWhere
Else
MsgBox "you must select at lease one broker"
End If
Here is the code for brokerfilter function:
Dim strWhere As String
'call brokerfilter function (in the form module) to create the report
'filter based on the brokers selected in the masterbrokerselect list box
strWhere = brokerfilter
'run report using filter
DoCmd.OpenReport "rptVerifyMonthlyProdAccess", acViewPreview, , strWhere
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
'This code is added so that I do not get the "event cancelled" message
'box when the report is canceled due to no data
If Err.Number <> 2501 Then MsgBox Err.Number & ": " & Err.Description, vbExclamation
Resume Exit_Command5_Click
Here is the code for the command button and function used by the command button - looking for any ideas if this could be something that is being caused by the database and not the network? thanks!!!!:
'loops through the masterbrokerselect list box to make sure at lease one broker
'is selected - if at lease one broker is selected, the report is run, otherwise
'the user gets a messagebox to select at lease one broker
With Me.MasterBrokerSelect
For Each Ditem In .ItemsSelected
If Not IsNull(Ditem) Then
Dlen = 1 + Dlen
End If
Next
End With
If Dlen >= 1 Then
'call brokerfilter function (in the form module) to create the report
'filter based on the brokers selected in the masterbrokerselect list box
strWhere = brokerfilter
'run report using filter
DoCmd.OpenReport "rptVerifyMonthProdSISVsAccess", acViewPreview, , strWhere
Else
MsgBox "you must select at lease one broker"
End If
Here is the code for brokerfilter function:
Dim strWhere As String
'call brokerfilter function (in the form module) to create the report
'filter based on the brokers selected in the masterbrokerselect list box
strWhere = brokerfilter
'run report using filter
DoCmd.OpenReport "rptVerifyMonthlyProdAccess", acViewPreview, , strWhere
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
'This code is added so that I do not get the "event cancelled" message
'box when the report is canceled due to no data
If Err.Number <> 2501 Then MsgBox Err.Number & ": " & Err.Description, vbExclamation
Resume Exit_Command5_Click