G
Guest
I keep getting an error message 2165 You can't hid a control that has the focus
I have 5 command buttons each have a variation of this
Private Sub Post_Travel_Click()
Forms![After Travel]![Post Travel1].Visible = True
Forms![After Travel]![Cash Only Test].Visible = False
Forms![After Travel]![Mileage Only 1].Visible = False
Forms![After Travel]![Other Info].Visible = False
Forms![After Travel]![Per Travel 0 Layovers].Visible = False
This works great at first. When I start with the first command button and
the form is visable, I can type in information then when I for example go to
the cash only command button to make that for visable I get the error
message. If I close out and come back in every thing is fine again. It
seems like I have to do something with the focus but I don't know what.
Please help.
Thanks
I have 5 command buttons each have a variation of this
Private Sub Post_Travel_Click()
Forms![After Travel]![Post Travel1].Visible = True
Forms![After Travel]![Cash Only Test].Visible = False
Forms![After Travel]![Mileage Only 1].Visible = False
Forms![After Travel]![Other Info].Visible = False
Forms![After Travel]![Per Travel 0 Layovers].Visible = False
This works great at first. When I start with the first command button and
the form is visable, I can type in information then when I for example go to
the cash only command button to make that for visable I get the error
message. If I close out and come back in every thing is fine again. It
seems like I have to do something with the focus but I don't know what.
Please help.
Thanks