Visible Buttons

  • Thread starter Thread starter SPM2
  • Start date Start date
S

SPM2

One form opens with two different buttons, one button in 'entry' mode the
other button in 'edit' mode. The problem that I'm having is, I want a CMD
button on this form visible when in 'edit' mode but not in 'entry' mode.

Any suggestions?

Thanks
 
in the code of the "edit" mode button, after the OpenForm command, add the
following:

Forms!FormName!CommandButtonName.Visible = True

add the same line to the "entry" mode button, but change the value of
Visible to False.

hth
 
One form opens with two different buttons, one button in 'entry' mode the
other button in 'edit' mode. The problem that I'm having is, I want a CMD
button on this form visible when in 'edit' mode but not in 'entry' mode.

Any suggestions?

Thanks

Work with these examples.
Code the Form's Load event:
CommandButtonName.Visible = Me.AllowEdits = True (or False)

or...

CommandButtonName.Visible = DataEntry = True (or False)
 
Back
Top