I am having difficult getting a combobox field to refresh/requery…
I have a table of customers, with an autonumber key. I have a second table of contacts for those customers (also with autonumber key). Because the contacts may be attached to multiple customers I have created a link table where the customer autonumber and the contact auto numbers are stored. When I display the customer, a subform of this linked table filters on the customer number, and displays a list of matching links. To display the contacts in a human friendly manner I have a combo box based on a query of the contact table.
This is so that in the event one contact is used of multiple customers there is only on contact to maintain. So far all this works well. If the user double clicks a contact in the combo box that contact opens for display and editing.
When the user double clicks the blank bottom (add a record row) contact, the form opens with a blank record to be added. Records add just fine. But when I go back to the combo form, the new record is on there….in the combo box. I have found that the record has been added to the contact table, and the link table. It seems the query has not refreshed/requeried, and/or the form/ combo box has not refreshed/requeried.
It has been a log time since I have done this programming, I get the feeling I am looking straight at the problem…..and not seeing it. (can’t see the forest cause all those trees are in the way).
i'm using ms access 2003
Forms!nameOfForm!comboName