how to show fields when u click a button

  • Thread starter Thread starter mimi
  • Start date Start date
M

mimi

can anyone tell me how to do this with access?
i have 2 toggle buttons in the form.
when i click button 1, i want 2 display
enter surname
and when i click button 2, i will display
enter address.
if i dont click either button, neither fields will be
displayed.
can anyone help? pls? i m new to access.
thanks
 
Mimi,

Assuming the surname control, for instance, is called txtSurname, then the
code behind the button, so it toggles, should be:

Me.txtSurname.Visible = Not Me.txtSurname.Visible

Likewise for the rest.

HTH,
Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top