smurfer69
asked on
hide associated text box when field is null in report
I have a report in access 2007, which lists catagories, some of the catagories have sub-catagories, attached to the catagories are text boxes which are there simply to have a place to fill in on paper date acheived etc. The items which have sub-catagories alos need these boxes but only when they are present, if I add the text boxes they show even when the sub is null and it makes the formatting a mess. I need a way to somehow hide the text boxes when the value is null
ASKER
The code does not seem to run, I had initial forgotten the end if and no error
ASKER
I have a question what stops the detail section from showing when ther is not data in the sub?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you right-click on the Report Section - on the gray box in the left side margin- Detail, Header, Footer, etc?
Did you select Properties from the exposed menu?
Did you select ON FORMAT event and enter the code?
You can alway type STOP in the code (before any other code). The app will break at that point and display the code (stop on the word "STOP")
If the app doesn't stop - then you've coded something that isn't part of 'the process'.
Scott C
Did you select Properties from the exposed menu?
Did you select ON FORMAT event and enter the code?
You can alway type STOP in the code (before any other code). The app will break at that point and display the code (stop on the word "STOP")
If the app doesn't stop - then you've coded something that isn't part of 'the process'.
Scott C
Many thanks
Happy to help
R
Happy to help
R
In this code section.....
If isnull(me.YouField) then
me.YourTextBox.visible = false
else
me.YourTextBox.visbible = true
end if
Scott C