Solved

How make labels NOT visible if new record on a form

Posted on 2014-01-20
5
300 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
  • 2
  • 2
5 Comments
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero 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 119

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now