Button to show another button?

hooperooo

New member
Local time
Today, 09:41
Joined
Sep 20, 2012
Messages
1
Hi guys,
Access novice here. I've been using it for about a week now, and can do most things with enough googling and trial and error.
One question though, I have a form that Im using to add participants into the database. At present, i have 2 buttons, one that opens the MALE add user form, and then another button which opens the FEMALE add user form.

What i was wondering is, is it possible to create a main button (called "ADD USER" for example), that when pressed, shows the two other MALE and FEMALE buttons for the user to choose from?


Sorry if that makes no sense. Basically, can I make a button that when pressed, makes two more buttons visible?

Thank you for any help! :)
 
It is quite unusual to have a different form (and presumably different tables) for male and female records. Why do you have this?
 
I agree with above, Male/Female shoudl be a field in your main table and you should use queries to filter them, however to work with what you have you can set up a form with all 3 buttons, use the on load event to change the visible property of the 2 hidden buttons to False. Then in your onclick event on the add user button your can change the visible properties of the 2 hidden buttons to True.

if you want to hide them again you can use the onclick property of the male/female buttons to change the visible property back to false.

play around with this function:
button1.Visible = False
 

Users who are viewing this thread

Back
Top Bottom