Update a list!

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

When I select Finished mode from Active nothing changes untill I close the
db down and re-open it
First code is to select the status and the 2nd is to open the list
I think there should be a Dirty in here some where
Thanks for any help....Bob

Private Sub cbStatus_BeforeUpdate(Cancel As Integer)
If IsNull(Me.cbStatus) Then
MsgBox "Horse can only be [Active] or [Finished] Mode!"
Cancel = True
End If
End Sub


Private Sub Command415_Click()
Me.cbActiveHorses.SetFocus
Me.cbActiveHorses.Dropdown
End Sub
 
When I select Finished mode from Active nothing changes untill I close the
db down and re-open it
First code is to select the status and the 2nd is to open the list
I think there should be a Dirty in here some where
Thanks for any help....Bob

If you want to display the value in ActiveHorses, and the underlying query has
changed, requery it first:
Private Sub Command415_Click()
Me.cbActiveHorses.Requery

Me.cbActiveHorses.SetFocus
Me.cbActiveHorses.Dropdown
End Sub


John W. Vinson [MVP]
 
Thanks John :)

John W. Vinson said:
If you want to display the value in ActiveHorses, and the underlying query
has
changed, requery it first:



John W. Vinson [MVP]
 

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