J
Jill
Hi,
Please see if there is anything wrong in the following code.
'Loop through all report names.
For Each AccessObject In CurrentProject.AllReports
'Don't add LabelsTempReport to drop-down menu.
If Not AccessObject.Name = "LabelsTempReport" Then
'Only add report names that contain the word "labels".
If InStr(AccessObject.Name, "Labels") > 1 Then
'Add currect report name and semicolon to ValueList variable.
ValueList = ValueList & Chr(34) & AccessObject.Name &
Chr(34) & ";"
End If
End If
Next
Please see if there is anything wrong in the following code.
'Loop through all report names.
For Each AccessObject In CurrentProject.AllReports
'Don't add LabelsTempReport to drop-down menu.
If Not AccessObject.Name = "LabelsTempReport" Then
'Only add report names that contain the word "labels".
If InStr(AccessObject.Name, "Labels") > 1 Then
'Add currect report name and semicolon to ValueList variable.
ValueList = ValueList & Chr(34) & AccessObject.Name &
Chr(34) & ";"
End If
End If
Next