A new problem: I want to change the visibility of some fields in the report from the same form. I made some checkboxes in the form for selection of the fields that I to view in the report. By default the fields from the report are invisible.
Here is the code that change the visibility, but it doesn't work. it is placed after the code that open the report.
the form where are the checkboxes: export, the report which is opened: Projects
If (Forms![Export]![state].Value) Then
Report.[Projects].[Project State].Visible = True
End If
at end is a messagebox:
title: Microsoft Office Access
Message: Object required
Here is the code that change the visibility, but it doesn't work. it is placed after the code that open the report.
the form where are the checkboxes: export, the report which is opened: Projects
If (Forms![Export]![state].Value) Then
Report.[Projects].[Project State].Visible = True
End If
at end is a messagebox:
title: Microsoft Office Access
Message: Object required