Visible Buttons

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
 
T

tina

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
 
F

fredg

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)
 

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

Top