C
Chris
I've look for an answer, tried many things and cannot get this to work. What
am I not seeing? Is there problem with this code? It returns the message
can't hide a control that has focus.
Fails on this statement:
Forms![frm1 Client].Form![Jobfrm].Form![BCAddfrm].Visible = False
Am I not resetting focus away from that?
Here's the routine complete:
Private Sub btnPost_Click()
Forms![frm1 Client].Form!HoldFocus.SetFocus
Forms![frm1 Client].Form![Jobfrm].Form![BCfrm].Visible = True
Forms![frm1 Client].Form![Jobfrm].Form![BCAddfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![BCExcfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![BBfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![HSfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![POfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![DCfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![OSfrm].Visible = False
End Sub
All I am attempting to do is make BCAddfrm INvisible and BCfrm visible again.
Argh! Please help this amateur.
am I not seeing? Is there problem with this code? It returns the message
can't hide a control that has focus.
Fails on this statement:
Forms![frm1 Client].Form![Jobfrm].Form![BCAddfrm].Visible = False
Am I not resetting focus away from that?
Here's the routine complete:
Private Sub btnPost_Click()
Forms![frm1 Client].Form!HoldFocus.SetFocus
Forms![frm1 Client].Form![Jobfrm].Form![BCfrm].Visible = True
Forms![frm1 Client].Form![Jobfrm].Form![BCAddfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![BCExcfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![BBfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![HSfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![POfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![DCfrm].Visible = False
Forms![frm1 Client].Form![Jobfrm].Form![OSfrm].Visible = False
End Sub
All I am attempting to do is make BCAddfrm INvisible and BCfrm visible again.
Argh! Please help this amateur.