refreshing combo values

Cereldine

Registered User.
Local time
Today, 14:29
Joined
Aug 4, 2005
Messages
71
From my main form i have a pop up form that allows user to enter data into the one side of a relationship.

When the form is closed i want to refresh the form that called it so the value can be selected from a combo box.

Is it not something simple along the lines of

Me.Visible = False
DoCmd.OpenForm "document_entry"
Form.Refresh
 
Code:
Me.MyCombo.Requery
 
do you have to set the focus to the main form first?
 
Cereldine said:
do you have to set the focus to the main form first?

If you are closing the form, as you have said, then I would have thought the focus would return to an active control on that form.

If you want to requery from the other form before you close it then:

Code:
Forms("FormName").ComboName.Requery
 

Users who are viewing this thread

Back
Top Bottom