read only form - command buttons

  • Thread starter Thread starter kids23bball
  • Start date Start date
K

kids23bball

I have a form that I use for adding new records. I then later open the form
in read only. Is there a way to not display a command button when I open the
form in read only.
 
sure. if you're opening the form with an OpenForm command, follow that line
of code with another to hide the button, as

Forms("FormName")!CommandButtonName.Visible = False

hth
 
awesome thanks

tina said:
sure. if you're opening the form with an OpenForm command, follow that line
of code with another to hide the button, as

Forms("FormName")!CommandButtonName.Visible = False

hth
 
I just had another thought. Is there a simple way to make the fields on the
whole form not selectable. I have it opened read only, but when I click on
drop down fields I see the choices. I would like to make the whole form
locked down. Thanks.
 
thanks for the help. Is there a way to do the whole form instead of listing
every combobox. THank you.
 
Back
Top