Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh or Requery a bound form

Status
Not open for further replies.

hefly

Technical User
Feb 6, 2008
134
US
I have a bound form ordered on DocNo. My form is bound via qry_Docs. If I add a DocNo that is out of sequence, how do I get my form to refresh or requery to display the records in numerical order based on the DocNo?

I have tried both Me.Refresh and Me.Requery in the following event:

Code:
Private Sub Form_AfterUpdate()
Me.Refresh
End Sub

Code:
Private Sub Form_OnLostFocus()
Me.Refresh
End Sub

Nothing is working.

Thank you!

Hefly
 
HAve you tried to play with Me.OrderBy and Me.OrderByOn ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 

Would you do, Me.OrderBy OnLostFocus() or AfterUpdate()?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top