I need to check yes/no checkbox fields to see if it is checked in table per record. Then, if the checkbox is checked, I need to display the field name(s) on the report.
You could try something like this in your Report's controls:
If Me!MyCheckBoxName = True then
Me!MyReportControl1 = Me!WhatEverOtherControl1
Me!MyReportControl2 = Me!WhatEverOtherControl2
Me!MyReportControl3 = Me!WhatEverOtherControl3
End if
You can set the visible property in the ONformat in the report...
OnFormat
If forms!myform!mycheckbox = true then
me!mylabel1.visible=true
me!mylabel2.visible=false
else
me!mylabel1.visible=false
me!mylabel2.visible=true
end if
That will probably work, but I dont have alot of space on the report, I would have about 60 different labels. Is there a way to concantante a variable so it can all be combined into one label?
Like if checkbox1=true then
concantantedVar = concantantedVar + checkbox1Var
end if
if checkbox2=true then
concantantantedVar = concantantedVar + checkbox2Var
end if
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.