update a main form combo box from subform info

G

Guest

In my main form I have a subform to hold job titles. In the main form I have
a combo-box that uses the titles from the subform as a criteria for a query
to produce a job description report.

Once I have entered a new job title, how do I automatically update the combo
box to include the new job title(s)?

cheers in advance
 
M

Marshall Barton

scubadiver said:
In my main form I have a subform to hold job titles. In the main form I have
a combo-box that uses the titles from the subform as a criteria for a query
to produce a job description report.

Once I have entered a new job title, how do I automatically update the combo
box to include the new job title(s)?


Requery the combo box in the subform's AfterUpdate event:

Parent.combobox.Requery
 

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