You cant disable the control while it has focus Error!!!!

GirishBreakTheRules

Registered User.
Local time
Today, 07:11
Joined
Oct 25, 2007
Messages
22
Hey guys,

am quite new on the forum, hope u'll help me out with this little problem. i have 2 forms created from the wizard. these are applicant form and School Certificate form. the Applicant_ID is a foreign key in the school certificateform .Both of these forms are displayed in separate tabs on a main form!!. I also have command buttons created from the wizard as well on both forms. When i add an applicant, automatically the applicant_ID displays on the other form in a combobox so that i can select it.

But the problem is that when i click on the Add record button on the school certificate form to add a new record about a certificate information for an existing applicant, it tells me "You cant disable the control while it has the focus".

Can anyone suggest me a possible cause and a way to fix that.??


Kind Regards.
 
Try following the vba code in the on click or on double click event
of your Add button. Somewhere there must be a command disabling
a particular control that has the current focus.

Try quoting it out that particular line to bypass it and observe
if your program still does what you want it to do.

If you don't want to disable the code, then send the focus to some
other control in your form before disabling it.
 
hey!

Hey Edtab thanx 4 replying.

i forgot 2 point out smefing. actually i have a main form, i have used tabs and on one tab i have Applicant as subform and on the other tab School certificate as subform.

do you fink that there iz some kinda of properties that havent been set??...If the forms are linked thru a foreign key..is there a property that must be set ect??


Hpe to get ur reply soon!
 
Problem Fixed, Thanx!!

Heyyyyyyyyy, i was able to fix the problem. Actually i had so set focus to the Applicant_ID field(Foreign key) on the School certificate form.

Nyways thanx 4 the great help!

cya :)
 

Users who are viewing this thread

Back
Top Bottom