• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

Update Query not working

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
cansevin
Asked:
cansevin
1 Solution
 
PatHartmanCommented:
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
 
cansevinAuthor Commented:
Thanks! Works great.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now