Solved

How make labels NOT visible if new record on a form

Posted on 2014-01-20
5
303 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

910 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

16 Experts available now in Live!

Get 1:1 Help Now