Requery Combo of Current Record in Datasheet View

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to programming and VBA.

I have a datasheet form where the user enters ticket info...ticketdate,
ticket#, etc.

cboProduct filters data based on the value in 2 other combo boxes.

What's the best way to get cboProduct to update after the other two combos
are changed. I tried this code:

Private Sub Product_Enter()
Me.ActiveControl.Requery
End Sub

But alas, it updates cboProduct for every record in the form.
 
I believe you would need to put the following code in the 'after update'
event of the two combobox controls that cboProducts is dependant upon:

me.cboProducts.ReQuery

Hopefully that helps

John Webb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top