Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Viewing History on Form
Kevin Yip 
      
49 days ago
In the Northwind database, there is nifty little feature on the top left corner of the ribbon bar: a drop-down viewing history that lets you instantly access records you have visited (pictured left below).  This is not a "little" feature at all, as it involves complicated XML and VBA coding of the custom ribbon bar.  I find the ribbon to be an inconvenient location of this feature.  Also, it can only tracks activities on one form, the Orders form.  

So I set out to build my own (picture right below), which can track viewing history for multiple forms.  It is also placed on the form itself, which I find to be a better location.  It also lets me remove unwanted history items, which Northwind can't do.  The drop-down list is a subform/continuous form which can be hidden and shown.  The history list is sorted by the date and time an item was last visited.  The most recently visited items are at the top.  If an item on the history list is visited again, it is moved to the top, in real time.  The history list is refreshed every time an item is visited.  One tricky thing is deciding how long the user has to stay on an item before it is placed on the history list.  If the user looks at a record, doesn't see what he wants, and quickly moves to another record (say, within 1-2 seconds), then the record should not be placed in the history.

Someone in this forum actually asked about something like this.  He asked if a form could open up a previously viewed record directly.  Ironically, I said there was no need for that at the time, as a search function was all that was needed.  I have to take back what I said.  It is actually quite useful to have instant access to previously viewed records, because you can't beat instant.

I'm still working on some issues of this feature.  For instance, if you are on the order form, and you open up the history to access something on the customer form, this feature has to "take you" from one form to the other.  That may be simple in some scenarios, but it may not be in others.  What if your current form is modal and can't lose focus?  What if you're entering data in your current form?  It has to "clean up" whatever you're doing in your current form and move you to the other form that has the history item.  That may entail some complicated coding.

Richard, if you haven't done anything like this for your site, you may want to consider tackling this.
Kevin Yip OP  @Reply  
      
49 days ago

Thomas Gonder  @Reply  
       
49 days ago
I like it! I use search forms extensively. That's great, but I often forget, after a few more forms or records, exactly what I was looking at a moment ago, before going down the rabbit hole.
Kevin Yip OP  @Reply  
      
49 days ago
It's definitely a helpful feature in many situations.  But in my all years with database UI, I had never done anything like this.  Nowadays, viewing history is a common thing. Web browsers have your complete, detailed viewing history sorted by sites, dates, etc.  Productivity software like Word, Excel, code editors, etc., all have your most recently used items (MRU).  As I said, it's not an easy thing to create, especially for desktop apps.  Web apps can at least rely on the web browser's viewing history.
Thomas Gonder  @Reply  
       
48 days ago
Kevin I'll probably go at it from a little different direction. I have an "Edit" button on my forms. Clicking it creates a log entry in my log table. I'll see if I can Shift + Edit click (allowed only if not editing a record), search the log table and pop up a form of recent records edited for that form (dupes considered), that can then "Goto" record. My Search forms "Goto", so it shouldn't be too hard to duplicate that logic. That will be exactly the memory jog I (and others using the ADS) need at times.

Great reasoning you have there. I already do similar for menus (not via logs). Suppose you drill down several menu levels, then press "Top", and think, "Doh, what was I just doing and where?" Pressing the "Next" button takes you back down the chain of levels.

The same idea has come in handy with the VBE, placing bookmarks on every procedure I'm working in as I go up and down rabbit holes.

Oh wait (given five minutes to think, there is always one or two of these moments)! Since the data is in a log table, maybe a supervisor could review the records modifications of a trainee?
Thomas Gonder  @Reply  
       
48 days ago

Thomas Gonder  @Reply  
       
48 days ago
Oh wait, again! The form should then have an enabled combo box for users under the supervisor's control, and two date text boxes for a date range, in case the last 10 or so records isn't enough. Or you want to review all of yesterday's work in a continuous form (I think Kevin already thought of that continuous part) that isn't limited to a set number of records. All without having to review log reports. My goodness, I can't wait for the next five minutes.
Richard Rost  @Reply  
           
48 days ago
Favorite Customers - In the extended cut, I show you how to view the customers that you viewed the most and the most recent. Same basic principle.
Thomas Gonder  @Reply  
       
48 days ago
Richard I'll be curious to see how you change the form's record set or use a bookmark to get to the wanted record, and then back again. Oh wait, are you cheating, doing it from a menu form for only calling a Customer Form for one customer?
Richard Rost  @Reply  
           
48 days ago
Mmmmmmmmmm... maybe. It's been a while since I recorded that, but I'm pretty sure I put a list box on the main menu with the most recent customers. At least that's how I do it in my database.

I've got three options on my main menu list box: Favorites, which always shows the people I open from time to time; Most Recent; and Most Viewed. I just flip between them, double-click someone, and it opens their account.

So yes, Thomas, that's basically "cheating" by doing it from the menu and opening the Customer form directly to that person. Kevin's version, where the history can follow you across multiple forms, is definitely the more ambitious implementation.
Thomas Gonder  @Reply  
       
48 days ago
Richard Of course, you do what works for you and your needs. It was a real pain to implement all the logic that allows a form to call a search form, then bring in a searched ID, show that record and then go back to the subset of the table first displayed. Most viewed is tough for me because users can go get the cup of coffee, leave an open form, and then using Kevin's idea of a delay, the record becomes "viewed". I think a history with date ranges/favorites/subordinates is going to be very cool for most all forms and specific to any such form. I need to go back and re-watch bookmarks and clones.
Kevin Yip OP  @Reply  
      
47 days ago
One design challenge is deciding *when* an item should be put in the viewing history.  If a user is casually browsing tons of records, he may not want to put them all in the history.  So should there be a viewing time limit?  Should a user look at a record for N seconds before it's put in the history (a form Timer event may be used here)?  But then, a user may not like being forced to look at it for N seconds.  Should the user click a button to put it in the history?  This is sort of like the bookmark button in web browsers.  But again, the user would hate to have to do this every time a record is viewed.  

Another challenge is saving "filtered info" into the viewing history.  After doing a search and filter on a form, the user may want to save that particular operation.  This can possibly be done by saving the names of the underlying tables and the criteria strings, but it's still a non-trivial task.

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

Next Unseen

 
 
What's This?

 

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: 11/30/2026 7:29:39 PM. PLT: 0s