Can't move the focus tot he control

D

Dan

I have done this many times in the past and don't understand why I am getting
this error message: "Microsoft Accass can't move the focus to the
control....".

I am using a single form with three option groups: frame2, frame 12 and
frame25
an input box, for entering data to a record, a command button to update the
record and a list box. The list box is used to display information only.

Frame12 and frame 25 are set to .visible = false when the form opens.
Frame2 sets the .Visiable bit for frame12 and frame25 depending on the choice.

Frame12 and frame25 have 5 options each. As an option is selected such as
Office, Dept, Computer, Printer, ect... a list box is populated with the
currently enter data.
If there is a new Office, Dept, Computer, Printer, ect... the new data can
be entered with the input box.

The record is updated by clicking the command button which updates the
record creats a new record sets the input box to NULL and sets the focus back
to the input box. That is where the error happens. I am unable to set the
focue to any of the controls on the form.

Does anyone have an idea what is going on?

Thanks for your help... Dan
 
A

Angi

Dan,
Are you trying to set the focus of an input box that isn't visible yet?
What frame is the input in?
 

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