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
 
Back
Top