Solved

How make labels NOT visible if new record on a form

Posted on 2014-01-20
5
312 Views
Last Modified: 2014-01-23
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
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 250 total points
ID: 39794945
place this codes in the open event of the form

me.label1.visible=not me.newrecord

me.label2.visible=not me.newrecord
0
 
LVL 30

Accepted Solution

by:
hnasr earned 250 total points
ID: 39794961
Only the label?
Making field invisible, hides the label as well.
0
 

Author Comment

by:SteveL13
ID: 39794964
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
 
LVL 30

Expert Comment

by:hnasr
ID: 39794974
Try the code in Current event.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39794976
are you sure the form is on new record?
try also the load event of the form
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question