Forum Discussion

Tony2021's avatar
Tony2021
Steel Contributor
Feb 19, 2022
Solved

Bring to Front and Turn Visible On - Report

Hello Experts,   I have been trying to get this one field on my report to turn visible on and bring to front if another field is Null or "".  The below is what I have and it doesnt seem to do anyt...
  • isladogs's avatar
    isladogs
    Feb 19, 2022

    Tony2021 

    Format events only work in Print Preview
    Can't see anything obvious that's wrong....

     

    Are both controls on the detail section?

    Try the opposite logic. Make txtAcctNoFront visible by default then use this code

    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    If Nz(Me.txtAcctNo, "") <> "" Then Me.txtAcctNoFront.Visible = False
    End Sub

     

     

Resources