SetFocus problem- Error 2950

  • Thread starter Thread starter NoviceNana
  • Start date Start date
N

NoviceNana

Hi, I'm trying to set focus on the first control of my form and I'm
getting an error message.

The control name is "UniqueID".

I put the code "UniqueID.SetFocus" in the OnOpen event, but this did
not work, instead I am getting an error 2950 that says "Reserved
Error".

After reading the posts it seems that this might have something to do
with the fact that the UniqueID field is attached to an updating
listbox on another form? Is there anyway around this problem? I'd
just like to set the focus of the field to this UniqueID field when
the form opens.

Thanks!!
 
NoviceNana said:
Hi, I'm trying to set focus on the first control of my form and I'm
getting an error message.

The control name is "UniqueID".

I put the code "UniqueID.SetFocus" in the OnOpen event, but this did
not work, instead I am getting an error 2950 that says "Reserved
Error".

After reading the posts it seems that this might have something to do
with the fact that the UniqueID field is attached to an updating
listbox on another form? Is there anyway around this problem? I'd
just like to set the focus of the field to this UniqueID field when
the form opens.


Try using the Load event instead.

Are you sure you need to do this? The first control in the
Tab Order list gets the focus automatically when the form
opens.
 
Thanks marshall,

that's what I thought, but for some reason it's not working on this
form.

I guess they'll just have to use the mouse to manually do it.. I doubt
anyone will die. :-p

Thanks!
Nana
 

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

Back
Top