Question : Access report textbox help

Hi Experts,

I have this report and in the detail section i have a two textboxes.
The first one is hidden and have the name "txtdemo". The other one have this as control source:
"=iif([txtdemo]='Bankkonti','1111-111111',[SEC])

Now to the odd thing.
if txtdemo = 'Bankkonti' then my secound textbox should show "1111-111111". In this report txtdemo is equals 'Bankkonti' 5 times after each other. But it only shows '1111-111111' in the first one?
Why does it not show 1111-111111 in the following 4?

Answer : Access report textbox help

With respect, you have misunderstood me.  I never said that the Visible property was set to False.

You may not be aware, but a textbox has a HideDuplicates property which is designed to cause it to behave exactly as you have described.  The value will show in the first instance, but if the next record has the same value then it will be hidden.  It will continue to be hidden until you get to a record with a different value.

In your case, the value in the first textbox would be visible, but would be hidden in the next four.

Usually this property is not set by default, but if you use the report wizard to create a report in "stepped" or "block" format, then HideDuplicates will be set for the grouping fields.

--
Graham

Random Solutions  
 
programming4us programming4us