473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Command button won't initialise as invisible!

Hi,

I have a problem with some of my command buttons, in design view I set
their properties to not visible. When I load up the form they appear
(visible). I can create another button to set them to not visible, this
works.. I tried setting them to not visible in the forms onCurrent
procedure, but this only made one of the forms invisible! it won't work
on the other!

This seems very strange to me, possibly there's a simple explanation though?

Cheers,
Chris
Nov 13 '05 #1
3 2480
Unless the button(s) is corrupted, I don't know why they would show if you
have Visible set to No for them in their Properties sheet. What code are you
using in the Current event to hide the button(s)?

--
Wayne Morgan
MS Access MVP
"Not Me" <no*****@da.com.hk.org> wrote in message
news:cv**********@ucsnew1.ncl.ac.uk...
Hi,

I have a problem with some of my command buttons, in design view I set
their properties to not visible. When I load up the form they appear
(visible). I can create another button to set them to not visible, this
works.. I tried setting them to not visible in the forms onCurrent
procedure, but this only made one of the forms invisible! it won't work on
the other!

This seems very strange to me, possibly there's a simple explanation
though?

Cheers,
Chris

Nov 13 '05 #2
Wayne Morgan wrote:
Unless the button(s) is corrupted, I don't know why they would show if you
have Visible set to No for them in their Properties sheet. What code are you
using in the Current event to hide the button(s)?


In form_current, I have:
Me.badgename.Visible = False

which does not hide the command button (works for other buttons).

In an onclick of a seperate button, I have:
Me.showBadge.Visible = Not Me.showBadge.Visible

which toggles the visibility fine, I just want it to be invisible by
default!

The command button has no events on it other than a click procedure,
it's not the default button, it doesn't have focus when the main form is
opened.. I don't get any error messages either!

I tried creating another button, did nothing to it other than set
visible to no.. when the form is opened it remains visible!
thanks for the help,
Chris
Nov 13 '05 #3
Not Me wrote:
Wayne Morgan wrote:
Unless the button(s) is corrupted, I don't know why they would show if
you have Visible set to No for them in their Properties sheet. What
code are you using in the Current event to hide the button(s)?


bah! sorry please ignore that, I found a call to a function which set
all buttons to be visible... (why? I don't know... not my code)

thanks for the help, sorry for wasting it though!!

Cheers,
Chris
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Geoff Cox | last post by:
Hello, I have a button which I wish to be invisible at the end of an application. How do delete it or simply make it invisible? Cheers Geoff
1
by: Tim | last post by:
I have one main form that I use to view data as well as add new records. When I click the add new record button, many of the form's controls that arn't needed get set to invisible. When I'm done...
0
by: peter_bradley | last post by:
Hi all, Not sure if this is possible, but can I change the controls of a command button on a per record bases in a subform. In my case, I would like to make a command button visible only if...
5
by: Gene | last post by:
What can I do if I want to get the result using the sql command? for example, the select command is "select Name from Employee where StaffID=10" How to get the "Name"??? dim Name as string and...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
4
by: John Smith | last post by:
I have a continuous form. there is a command button with the following code for the OnClick event: DoCmd.OpenForm "frmPlants", , , "PlantsID =" & Me!PlantsID I click the button and frmPlants...
4
by: QntmPg | last post by:
Hi all I am trying to design a database that holds contact/demographic information on a person and what studies they have participated in. I have a few ideas, but wanted to get feedback on...
4
by: cjt22 | last post by:
Hi there. I just wondered whether anyone could recommend the correct way I should be passing command line parameters into my program. I am currently using the following code: def main(argv =...
9
by: Jonathan Wood | last post by:
Does anyone know of any reason a button on a master page would have no effect? I have a complex HTML page that I'm converting to ASP.NET, and acknowledge I could have something odd that is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.