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

Command Button to Unhide Fields

P: n/a
Hi

How do I make a command button which would make some form fields
visible when clicked? Or maybe those fields could pop up on another
form

Sunil

Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In message <11**********************@g49g2000cwa.googlegroups .com>,
su**********@gmail.com writes
Hi

How do I make a command button which would make some form fields
visible when clicked? Or maybe those fields could pop up on another
form

Sunil

Try something like this:
sub Showme_Click

ctrl1.visible = not ctrl1.visible
ctrl2.visible = not ctrl2.visible

end sub


--
Bernard Peek
London, UK. DBA, Manager, Trainer & Author.

Nov 13 '05 #2

P: n/a
Ted
Sunil:
Here is another option. If the fields need to be visible based upon the
value of a particular field, then you could use code similar to this:

AfterUpdate Event for FieldNameA
If Me!FieldNameA > 500 Then
Me!FieldNameB.Visible = True
Else
Me!FieldNameB.Visible = False
End If

I hope this is helpful.
Ted

Nov 13 '05 #3

P: n/a
Thanks for the inputs ! This really helps.

Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.