I have a form open and after a user presses a button, I have the code:
DoCmd.Openform "TicketEntry"
exit sub
My problem is that even though the form is on top of my first form, I can't seem to get any code (like form_open code) to work. I specifically have a Me!firstticket.setfocus
which I have tried in form_load and form_open and the focus on the field never happens. I can click on the form into that field but the focus command doesn't seem to work.
I have tried putting putting in a debugging point in the form_open or load but it never seems to hit it. It's like the focus is back on form 1 that called this form.
I have even tried putting the setfocus line right after the open form command and then it tells me that it doesn't know the field I'm trying to set the focus to.
Anyone have any idea's??
DoCmd.Openform "TicketEntry"
exit sub
My problem is that even though the form is on top of my first form, I can't seem to get any code (like form_open code) to work. I specifically have a Me!firstticket.setfocus
which I have tried in form_load and form_open and the focus on the field never happens. I can click on the form into that field but the focus command doesn't seem to work.
I have tried putting putting in a debugging point in the form_open or load but it never seems to hit it. It's like the focus is back on form 1 that called this form.
I have even tried putting the setfocus line right after the open form command and then it tells me that it doesn't know the field I'm trying to set the focus to.
Anyone have any idea's??