I found this nice code that prevents a user from opening a .mde file on a computer more than one time. I was shocked to find out that a .mde file can be opened more than one time on a single machine.
Unfortunately if the file is opened using MS Access 2007, it can be opened more than one time. So the problem returns as our company upgrades from MS Access 2003 to MS Access 2007 (ugh, 2007 has been such a headache).
I have attached the code module below that works just fine in MS Access 2003, but not in 2007. When the form that is defaulted as the start-up form opens up, this code module is run on the Open Event. If anyone has any ideas of what I can do to make it work in MS Access 2007, let me know.
Thank you for your help.
T.J.
Unfortunately if the file is opened using MS Access 2007, it can be opened more than one time. So the problem returns as our company upgrades from MS Access 2003 to MS Access 2007 (ugh, 2007 has been such a headache).
I have attached the code module below that works just fine in MS Access 2003, but not in 2007. When the form that is defaulted as the start-up form opens up, this code module is run on the Open Event. If anyone has any ideas of what I can do to make it work in MS Access 2007, let me know.
Thank you for your help.
T.J.