Solved

Update Query not working

Posted on 2014-03-31
2
207 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 34

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now