Hi all.
I'm currently writing an application framework for use with Access 2000, and in that respect, I need to (in code) to get the owner of the current database file.
¨
According to all manuals, the proper way to do this, is to use the method "getObjectOwner()", with NULL as the object name, and adPermObjDatabase
as the object type:


''/
'' This function displays a messagebox indicating who is the owner
'' of the current project.
'' @author PGD, Oct 99
'/
public Sub DisplayOwner()
Dim myCatalog as new ADOX.Catalog
Dim myString as string

myString = ""

With myCatalog
.ActiveConnection = currentproject.Connection
myString = .GetObjectOwner(null, adPermObjDatabase)
End With

msgbox "The owner of this database file is " & myString, vbOkOnly
End Sub




I keep getting "invalid use of Null" when I try to do this. The manuals
state that it should work. My version of ADO is 2.1

Any help given would be greatly appreciated!

Pedro G. Dias
Oslo, Norway