Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Sorting Access Continous Forms
Fred Stetson 
    
2 years ago
Don't know if this is novel to all of you, but to me it is.  I found a way to emulate the column "sort" function in Excel to make Access sort continuous forms.  I was able to accomplish by using command buttons in lieu of labels.  I did this using Command Buttons in lieu of labels, with three image files I created.  The code I am using is;

This code is brought to you by Fred Stetson, of Stetson Management Solutions
'You may use this code as long as you keep this statement intact.
'This code is for sorting using a Command Button, and images to reflect sort order.
'The intent is to emulate MS Excel sort function in column headings

Private Sub CMDBUTTONNAME_Click()
If Me.OrderBy = "FIELD NAME" Then
    Me.OrderBy = "FIELD NAMEDesc"
    Me.CmdAccCode.Picture = "PUT YOUR DESC IMAGE PATH HERE"
        Else Me.OrderBy = "FIELD NAME"
            Me.CMDBUTTONNAME.Picture = "PUT YOUR ASC IMAGE PATH HERE"
End If
End Sub

Private Sub CMDBUTTONNAME_Exit(Cancel As Integer)
   Me.OrderBy = "DEFAULT SORT FIELD NAME FOR CURRENT FORM"
   Me.CMDBUTTONNAME.Picture = "PUT YOUR NORM IMAGE PATH HERE"
   Me.Requery
End Sub
Fred Stetson OP  @Reply  
    
2 years ago
Also assign your NORM Image file to the command button image property as linked

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 1:30:12 PM. PLT: 1s