OpenDatabase with Shared Database

When I use OpenDatabase on a shared database, do I specify the file location or just the name of the file?

The thing is, on a shared database we can’t know the location because it’s available on different computers. But I’ve been having some errors when leaving off the location when trying to open it.