Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with .Visible

Status
Not open for further replies.

billheath

Technical User
Mar 17, 2000
299
US
I need to be able to show a command botton only when the form date is the same as today's date. I tried:
If Me.DateWkd <> Date Then
Me.New.Visible = False
End if

This doesn't work. So I tried:
If Me.DateWkd <> Date Then
Me.New.Transparent = True

This works, but the user can still click where the command button should be and activate the button. How can I make the button inactive when it is hidden?

I am using Access 2007. Thanks in advance - You guys are great!

 
Just trying to get it to dissapear, is all. When me.visible did not wotk I added me.transparent as a trial. I just removed it and it still doesn't work. Thanks
 
Thanks all, I moved the code to the end of the On Current event and it seems to be working. I have no idea why. I moved it back and it doesn't work so something is preventing it from working in that location. Moved it back to the end and all is fine. Thanks for your help. wish I knew what the difference was!
 
[blush]

The Yay and Nay part was just where I was trying to get it to just DO something on the short quick little test here. ;0)

I didn't get around to adding the controls, was just trying to see if could get the _Current to do ANYTHING on my end. ;0) But then again, it was a very quick tinkering, not much effort on my part.

--

"If to err is human, then I must be some kind of human!" -Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top