S
Sharkbyte
When I run a series of code, running several Enabled = False commands, I keep
getting stopped with an error stating I can't disable a control w/ focus.
However, I have moved focus prior to this code executing.
I have included the code below. I have also tried other iterations, of this
code. I have moved focus earlier in the code, as well as moving focus to a
second control, first.
Any ideas why the focus continues to return to the control causing the error?
TIA --- Sharkbyte
Me.cmdChangePO.Enabled = False
Me.cmdAddFee.Enabled = False
Me.cmdAddNote1.Enabled = False
Me.cmdAddNote2.Enabled = False
Me.subfrmCreateInvoice11!cmdAddMisc.Enabled = False
Me.subfrmCreateInvoice11!cmdDeleteMisc.Enabled = False
Me.cmdClose.SetFocus
(Problem line) Me.subfrmCreateInvoice4!cmdDeleteServiceFee.Enabled = False
Me.subfrmCreateInvoice9!cmdAddInvoicePart.Enabled = False
Me.subfrmCreateInvoice9!cmdDeletePart.Enabled = False
getting stopped with an error stating I can't disable a control w/ focus.
However, I have moved focus prior to this code executing.
I have included the code below. I have also tried other iterations, of this
code. I have moved focus earlier in the code, as well as moving focus to a
second control, first.
Any ideas why the focus continues to return to the control causing the error?
TIA --- Sharkbyte
Me.cmdChangePO.Enabled = False
Me.cmdAddFee.Enabled = False
Me.cmdAddNote1.Enabled = False
Me.cmdAddNote2.Enabled = False
Me.subfrmCreateInvoice11!cmdAddMisc.Enabled = False
Me.subfrmCreateInvoice11!cmdDeleteMisc.Enabled = False
Me.cmdClose.SetFocus
(Problem line) Me.subfrmCreateInvoice4!cmdDeleteServiceFee.Enabled = False
Me.subfrmCreateInvoice9!cmdAddInvoicePart.Enabled = False
Me.subfrmCreateInvoice9!cmdDeletePart.Enabled = False