Question on record locking management

donwiss

Board Regular
Joined
Jul 5, 2020
Messages
62
Platform
  1. Windows
I'm developing an application that is all Excel VBA Forms with the data in Access. I have no database background. I developed a record locking system not knowing just what real ones have.

This is my locking management form. There are three types of file systems, hence some blanks. The one with a blank in the Record Name column does have record nnames, but they are edited simultaneously, and so all locked together.

records-lock-onoff.gif


When I added the Last Saved column, what I really wanted to add was the timestamp of when it was locked. Of course, I could add that field to each table, and only complicate things a little.

So my question is just what does a real locking system have? If I add the lock timestamp, does anyone care about when it was last saved?
 

donwiss

Board Regular
Joined
Jul 5, 2020
Messages
62
Platform
  1. Windows
Also I do not have record IDs. My primary key is the combination of folder and file names. My pseudo-file system.
 

Some videos you may like

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

donwiss

Board Regular
Joined
Jul 5, 2020
Messages
62
Platform
  1. Windows
Okay guys. I surrender. Another reason for switching is to not embarrass myself when someone in the know looks at my code.

All is done and documented. There was not that much SQL code to change. And the retrieval of what files are locked is dramatically simplified. I always like to reduce the code.

So thanks for setting me straight. The end result is much nicer than what I had before.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,347
Messages
5,624,136
Members
416,012
Latest member
rockermom59

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
Top