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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Form after use of Filter/Sort Buttons

Status
Not open for further replies.

chappie2

Technical User
May 18, 2004
29
US
I have created a "one line per record" form based on a query. The query also includes a sort order. I would like users to be able to use the buttons on the standard toolbar to either select or sort records from this form, but not have those sort/select actions saved with the form when it is closed.

Is there an action I can save in the macro to not save selection/sort changes when the form is closed?

Thanks.

Chappie
 
Undo method to reset all changes to a form before the form is updated.

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.Undo
End Sub

------------------------
Hit any User to continue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top