I have a report that needs some duplicates hidden and others not. After searching the net I found the IsVisible variable. I am having a hard time getting the thing to work even though it seems straight foward.
I read that I need to put this code into the control source for my text box:
=IIf(OrderID.IsVisible,[OrderDate],Null)
Now I figured all I would have to do is replace OrderID and Orderdate with what I needed filtered on my report. I think that those are name of the text boxes right? So I put in the names of the text boxes in my report:
=IIf(OF LINE.IsVisible,[ON DRAWING],Null)
I get a syntax error when I try to use this.
So I figured that it doesnt like spaces. I took out the spaces in the names of the text boxes and re-entered the names into the command. It automatically changed the code to look like this:
=IIf([OFLINE].[IsVisible],[ONDRAWING],Null)
Which or course just gives you a bunch of boxes asking for input when you run the report.
So I tried different combinations, thinking that perhaps its not the text box name I need but the actual field name in the query etc etc all with the same results.
Can some please tell me what I am doing wrong?
Thanks!
I read that I need to put this code into the control source for my text box:
=IIf(OrderID.IsVisible,[OrderDate],Null)
Now I figured all I would have to do is replace OrderID and Orderdate with what I needed filtered on my report. I think that those are name of the text boxes right? So I put in the names of the text boxes in my report:
=IIf(OF LINE.IsVisible,[ON DRAWING],Null)
I get a syntax error when I try to use this.
So I figured that it doesnt like spaces. I took out the spaces in the names of the text boxes and re-entered the names into the command. It automatically changed the code to look like this:
=IIf([OFLINE].[IsVisible],[ONDRAWING],Null)
Which or course just gives you a bunch of boxes asking for input when you run the report.
So I tried different combinations, thinking that perhaps its not the text box name I need but the actual field name in the query etc etc all with the same results.
Can some please tell me what I am doing wrong?
Thanks!