Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Update Query not working

Posted on 2014-03-31
2
209 Views
Last Modified: 2014-03-31
I am using  an after update command to update a query that is helps another combo box. For some reason the after update isn't working. I am using the below code, any idea how to make it work?

Private Sub cmbOffice_AfterUpdate()
    Me.qryTerritoriesforInstForm.Requery
End Sub

Open in new window

0
Comment
Question by:cansevin
2 Comments
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39967007
Is "qryTerritoriesforInstForm" the name of the combo?  That is what you need to requery.

Me.somecombo.Requery

Simply running queries doesn't do anything unless they are Action queries that are adding/changing/deleting.
0
 

Author Closing Comment

by:cansevin
ID: 39967026
Thanks! Works great.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question