Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 18th, 2004, 06:23 PM
Authorized User
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do you make a label visible in a form

When I click on a button on my form it lanches a macro that imports a text file into a table. Upon the completion of that task it returns to the form. Is there a way to have a label start off being set to [u]not visible</u>, but then turn it on after a macro has completed?

Old March 19th, 2004, 04:19 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

When you are in design mode set the visible property to 'No' and name it something like 'lblMessage'. In your macro, when you need to show the label use the SetValue instruction:
Instruction name: SetValue
Item: [lblMessage].[Visible]
Value: True

If you are using VBA then it's:
 lblMessage.Visible = True
. You may need to prepend the name of the form if your code is in a module.


Old March 19th, 2004, 03:32 PM
Authorized User
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for your help. It was exactly what I was looking for.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide and make visible scandalous ASP.NET 2.0 Basics 0 May 24th, 2007 08:51 AM
to make checkboxes visible in datagrid C# windows bhavna General .NET 1 March 5th, 2007 10:41 AM
trying to make a custom label for phone numbers... thenoseknows ASP.NET 2.0 Professional 2 August 22nd, 2006 06:07 PM
Make visible/invisible stealthdevil Access VBA 6 May 31st, 2006 10:59 AM
visible vs. not visible on form akibaMaila VB.NET 2002/2003 Basics 2 August 15th, 2005 02:40 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.