Need Visible-NotVisible on rpt

  • Thread starter Thread starter Bonnie
  • Start date Start date
B

Bonnie

Hi there! Using A02 on XP. Use Visible/Not Visible on lots
of forms, why can't I have fields on a report visible on
the report open event? Where must I do it? I have a few
fields that may or may not need be visible. I tried in the
Control Source to do this: =IIf(Val([Journal])=-
1,Format$([GrossDistr]-[FIT]-[LoanBalAmt]-
[StateTax],"$#,##0.00"),([WireAmt].[Visible]=False)) just
doesn't work. I know it's something simple but it would be
so nice if I could do it.

Thanks in advance for any help or advice!!!
 
The control source is just telling Access where to get
it's value from

One way to do it, is in your report, assuming these
values are in the detail section of your report, go into
the "On Format" property of your Detail section, and
start a new event procedure. Then you can simply do a
Select Case or If-Then statement (like the example below)
for your condition like the example below

If condition_to_be_tested= -1 Then
Me.FIELDTOMAKEVISIBLE.Visible = False
Else
Me.FIELDTOMAKEVISIBLE.Visible = True
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Visible or Not 1
Visible Field 6
Error Handling for Report 3
Subreport label stays visible 4
Visible/Not Visible on reports 1
Accessing Fields on a Report 2
Where To Place Conditonal Code 1
Sub Report visibility 1

Back
Top