Error 40036

G

Guest

I'm getting run-time error 40036 when I try to run the following code:

DoCmd.OpenForm "frmLast_Updated_Source"
Forms![frmLast_Updated_Source]![Descriptor.Descriptor].SetFocus

Any idea what's going on here?
 
J

John Vinson

I'm getting run-time error 40036 when I try to run the following code:

DoCmd.OpenForm "frmLast_Updated_Source"
Forms![frmLast_Updated_Source]![Descriptor.Descriptor].SetFocus

Any idea what's going on here?

Probably you don't have a control with the very odd name
Descriptor.Descriptor. What is the Name property of the control to
which you wish to set the focus?

John W. Vinson[MVP]
 
G

Guest

I actually did have a control by this name, but thinking that Access might be
having difficulty recognizing it, I changed the Name property and then
changed the code, and the error went away. Thanks.

John Vinson said:
I'm getting run-time error 40036 when I try to run the following code:

DoCmd.OpenForm "frmLast_Updated_Source"
Forms![frmLast_Updated_Source]![Descriptor.Descriptor].SetFocus

Any idea what's going on here?

Probably you don't have a control with the very odd name
Descriptor.Descriptor. What is the Name property of the control to
which you wish to set the focus?

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top