P
Paul
I'm using some VBA code to open another form when you double click on a text
box in a continuous form. I'm also trying to close the first form by using
the DoCmd.Close method at the beginning of the double click event . While
this command usually works fine, in this particular case I keep getting the
following error message:
"The expression you entered refers to an object that is closed or
doesn't exist."
The thing that puzzles me about this is that I use DoCmd.Close in a number
of other forms in this application to navigate from one form to the other
(and closing the first form when the second one opens), but for some reason,
I can't do it in this form.
I am able to get the form to close if I put a command button in the form
footer of this continuous form, but then the user doesn't get the
convenience of double-clicking on a particular record to open the next form
to the same record.
Any ideas on why I can't get DoCmd.Close to work in the Double Click event
of a control in the detal section, and how I can get it to work as intended?
Thanks in advance,
Paul
box in a continuous form. I'm also trying to close the first form by using
the DoCmd.Close method at the beginning of the double click event . While
this command usually works fine, in this particular case I keep getting the
following error message:
"The expression you entered refers to an object that is closed or
doesn't exist."
The thing that puzzles me about this is that I use DoCmd.Close in a number
of other forms in this application to navigate from one form to the other
(and closing the first form when the second one opens), but for some reason,
I can't do it in this form.
I am able to get the form to close if I put a command button in the form
footer of this continuous form, but then the user doesn't get the
convenience of double-clicking on a particular record to open the next form
to the same record.
Any ideas on why I can't get DoCmd.Close to work in the Double Click event
of a control in the detal section, and how I can get it to work as intended?
Thanks in advance,
Paul