If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
how to show fields when u click a button
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 |
#2
|
|||
|
|||
how to show fields when u click a button
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 "mimi" wrote in message ... 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 |
Thread Tools | |
Display Modes | |
|
|