How to prevent multiple instances of databases from being opened

Hi there,

How do I prevent users from opening a database more than than one at a time? I remember when I started making the database this worked automatically but it suddenly stopped working, I don’t know what I did!

Thanks,

Daniel