Disable Button on Opening Form

  • Thread starter Thread starter Abe Katz
  • Start date Start date
A

Abe Katz

Hello All,

When I open a form I disable one of the buttons like this,
DoCmd.OpenForm "Ship List"
Forms![Ship ListDT]!ctlButton.Enabled = False

But it doesn't work when I open the form with acDialog option like this,
DoCmd.OpenForm "Ship List", , , , , acDialog

I know why, because the execution stops, when you open as a dialog form.

What can I do to disable the button even when opened as a dialog?
Thanks
Abe
 
Hi Abe,

Do the disabling inside the "Ship List" form's On Open event instead.

Clifford Bass
 
Back
Top