Addressing seperate pages on a report

M

Marcel Stoop

Following is my problem

- Report consist of say 20 pages
- The field on which I have to check is: txtX (txtX is an unbound field in
the group header)
- On every separate page of the report txtX could have a different value
- As soon as the value of txtX on the next page changes, I have to make
another field (txtY) visible
- If the value of txtX on the next page does not change, field txtY should
be invisible

The visible and making invisible part is not the problem.

The real problem is:
Is it posible to check the value of field txtX on the seperate pages of the
report (using by format).

Thanks for the help
Marcel
 
M

Marshall Barton

Marcel said:
Following is my problem

- Report consist of say 20 pages
- The field on which I have to check is: txtX (txtX is an unbound field in
the group header)
- On every separate page of the report txtX could have a different value
- As soon as the value of txtX on the next page changes, I have to make
another field (txtY) visible
- If the value of txtX on the next page does not change, field txtY should
be invisible

The visible and making invisible part is not the problem.

The real problem is:
Is it posible to check the value of field txtX on the seperate pages of the
report (using by format).


Try this. Add a hidden text box named txtZ to the whatever
section contains the txtY control. Then add this kind of
code to the section's Format event:

Me.txtY.Visible = (Me.txtX<> Nz(Me.txtZ, "junk"))
Me.txtZ = Me.txtX
 
M

Marcel Stoop

Thanks for the help

I will try it, and let you know if it worked.

Cheers
Marcel
 
M

Marcel Stoop

Many Thanks Marsh

It works great, just what I was looking for.

Cheers
Marcel

Marcel Stoop said:
Thanks for the help

I will try it, and let you know if it worked.

Cheers
Marcel
 

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

Top