Read your post at least a couple of times and still am left wondering why you can't use the db Command property (unless you really were referring to a command function, which I've not heard of). I've used it to determine if the db was opened by a pc (not used by a person but was only for running many updates during the night) or not. If not, it was a regular person, and the difference was that the "pc" version used a shortcut with a command line switch. Anyway, you solved it and were generous enough to post your solution. Thanks!
Last edited by Micron; 02-03-2019 at 10:59 AM.
Reason: spelin and gramur
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.