G
Guest
Hello
I am attempting to turn one command button off and another on on the same form
I am having difficulty with the setfocus. I am trying to setfocus to my subform, then apply the command buttons settings, and repaint the main form. I can’t get past the first setfocus. And the debugger does not recognize the name of my subform.
The main form name is frmNodes, the subform name is fsubCost.
===== code =======
Forms!fsubCost.SetFocus ‘ set focus to subfor
Me!cmdUpdate.Visible = False ‘ hide Update butto
Me!cmdSave.Visible = True ‘ display Save butto
Forms!frmNodes.SetFocus ‘ set focus back to main for
Me.AllowEdits = True ‘ turn edits o
Me.Repaint ‘ repaint the form with the Save butto
====== end code ==========
Thanks
Mik
I am attempting to turn one command button off and another on on the same form
I am having difficulty with the setfocus. I am trying to setfocus to my subform, then apply the command buttons settings, and repaint the main form. I can’t get past the first setfocus. And the debugger does not recognize the name of my subform.
The main form name is frmNodes, the subform name is fsubCost.
===== code =======
Forms!fsubCost.SetFocus ‘ set focus to subfor
Me!cmdUpdate.Visible = False ‘ hide Update butto
Me!cmdSave.Visible = True ‘ display Save butto
Forms!frmNodes.SetFocus ‘ set focus back to main for
Me.AllowEdits = True ‘ turn edits o
Me.Repaint ‘ repaint the form with the Save butto
====== end code ==========
Thanks
Mik