[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

How make labels NOT visible if new record on a form

I have two labels I want to not be visible when a form opens for a new record entry.

How can I do this?
0
SteveL13
Asked:
SteveL13
  • 2
  • 2
2 Solutions
 
Rey Obrero (Capricorn1)Commented:
place this codes in the open event of the form

me.label1.visible=not me.newrecord

me.label2.visible=not me.newrecord
0
 
hnasrCommented:
Only the label?
Making field invisible, hides the label as well.
0
 
SteveL13Author Commented:
Actually one is a label and one is a combobox.  I tried this but they are both still visible when the form opens for a new record.

    Me.Combo125.Visible = Not Me.NewRecord
    Me.FindRecordLabel.Visible = Not Me.NewRecord
0
 
hnasrCommented:
Try the code in Current event.
0
 
Rey Obrero (Capricorn1)Commented:
are you sure the form is on new record?
try also the load event of the form
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now