By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,401 Members | 1,381 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,401 IT Pros & Developers. It's quick & easy.

Command button won't initialise as invisible!

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.