Get value of 10 texboxes to decide group footer color

  • If I have the 10 textboxes in my footer with a value of "X" (from an IIF() expression), then I would like to alert the users and have the footer a different color.

    I'm trying to get the value of the textbox, but keep getting an error of it being undeclared.  I'm trying different syntax, but can't get it to work.

    Here's the code:

    =

    IIF(

    textbox11 ="X" or textbox15="X" or textbox19="X" or textbox27="X" or textbox23 = "X" or textbox31 = "X" or textbox35 = "X" or textbox39 = "X" or textbox43 = "X" or textbox47 = "X"

    ,"Gainsboro","Transparent")

  • I think you'll need textbox11.Value to check its value

  • Thanks Mark.  I'll try it out.  I was told not to worry about this for the report, but I'm sure it'll help in the future.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply