User history: last five accessed records

Thirith

Board Regular
Joined
Jun 9, 2009
Messages
118
For a database I'm working on at work, I've been asked whether it'd be possible to implement something along the following lines: a drop-down box that lists the last 10 accessed records for a user. It doesn't matter whether they were edited, as we often consult the database for information, and I don't even think the list of recent records would need to be stored beyond the current session (though if it was, that'd also be okay).

I have a couple of ideas - pretty vague ones right now, since I've only just arrived at the office and I've got a heap of other things to get through, as Access isn't really what I was hired to do - but I was thinking that this might be the kind of function that is requested or used quite frequently, so I wanted to ask the community here if you have any pointers for me. I've done a Google search, but I wasn't particularly successful.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Seen this done a couple of ways, probably the most straight forward is on the 'on open' event, append a record to a history table - (UserID, RecordID and a way of sorting them - current Date & time or AutoID).

Then just have the row source of the combo as select top 5 query with the criteria being the active user.

Another way I have seen it done is using the registry to store the information... It means that if a user accesses from different machines the list they see will be different. It is also cumbersome as you need to either shift the records each time or bring them into code ans sort them. It can be quite a good method for storing machine specific settings though.
 
Upvote 0
Thanks, those are good starting points. One thing I was wondering: even though we're obviously a split database, is it possible to add a user-specific table to the front-end?
 
Upvote 0
Yeah - it is quite common to have at least one user specific table in the FE - this is often used to check the version of the FE matches the latest version. Holding the history there would be ok, however, it does mean using different machines would show different history (similar to the registry method).
 
Upvote 0
Thanks, that's useful to know. It shouldn't be a problem in our case, as we tend to have personalised, tweaked FEs that are stored on a network drive, so people would have the same history regardless of the PC they're accessing the DB from. (It's quite possible that some or all of this goes against Access best practices, but we're all self-taught dabblers in Access... ;))
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,438
Members
448,897
Latest member
dukenia71

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top