We help IT Professionals succeed at work.
Get Started

Can't refresh combox box and/or query

swindsorct
swindsorct asked
on
246 Views
Last Modified: 2012-05-11
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
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2016
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE