openform with gotfocus

F

Francis

hello i have a form that as commercialconditions, and another
commercialconditions_EditForms, which look like this:

CommercialConditions (Form1)
IDcomcond (autonum)
combobox1 (cbo)
business (text)
....

CommercialConditions_Editforms (Form2)
IDcomcond (autonum)
combobox1 (cbo)
business(text)
....

For some reasons i want to open form2, to edit the information in cbo
Form1, and im using openArgs , to pass the value of IDcomcond, i
validate that it isnt null in first place, and i store the value of
IDcomcond successfully in the openargs.

I'm using the gotfocus event in combobox1 Form1, the problem is that
when i openform Form2 im using:
DoCmd.GoToControl ctrlcombobox1
DoCmd.GotoRecord Me.OpenArgs

I tdoenst work bcose the form1 is still in edit mode, and record hasnt
been yet stored in DB fully.
 
F

Francis

Oh basically Form1 and Form2 have the same structure, but i use form2
to edit combobox1 besides the other data, because Form1's combobox1
isnt updateable by reasons concerning my forms goals

Thanks in advance for any answers
Francis


Francis escreveu:
 
F

Francis

Is resikve already with the assistance of some contributors, in another
post i made, so thanks to all who suggested and/or gave ideas there.

Francis (Évora-Portugal)
 
F

Francis

Is resolve already with the assistance of some contributors, in another
post i made, so thanks to all who suggested and/or gave ideas there.

Francis (Évora-Portugal)
 

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