badinjector
Programmer
Is there any way to suppress checkboxes that are null (or zero) on a report along with their associated labels...and do it so the dead space is removed (i.e. canshrink)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim ctrl As Control
For Each ctrl In Me.Controls
If TypeOf ctrl Is CheckBox Then
With ctrl
.Visible = False
End With
End If
Next ctrl
End Sub
SELECT ProductID, "Sporting" as Category
FROM tblProducts
WHERE [Sporting]=true
UNION ALL
SELECT ProductID, "Apparel"
FROM tblProducts
WHERE [Apparel]=true
UNION ALL
SELECT ProductID, "shoes"
FROM tblProducts
WHERE [shoes]=true
UNION ALL
--etc--
WHERE [LastCategory]=true;