?
Solved

Update Query not working

Posted on 2014-03-31
2
Medium Priority
?
212 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
[X]
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
2 Comments
 
LVL 38

Accepted Solution

by:
PatHartman earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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