ACC97: Run-Time Error '3028' Using CreateWorkspace Method with a Password ArgumentID: Q181961
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
If you use the CreateWorkspace method without specifying the DBEngine
object, you may receive the following error message when you use the
optional Password argument:
Run-time error '3028':
Can't start your application. The workgroup information file is missing or opened exclusively by another user.
When you create a new Workspace object in which you specify a password, use
the following syntax:
Set Workspace = DBEngine.CreateWorkspace(name, user, password, type)
Microsoft has confirmed this to be a problem in the versions of Microsoft Access listed at the beginning of this article.
Public Sub TestWorkspace()
Dim wrkAdmin As Workspace
Dim dbs As Database
'Create a new workspace and assign it to the database administrator.
Set wrkAdmin = CreateWorkspace("AdminWorkspace", "Admin", "test", _
dbUseJet)
'Be sure to change the path in this next line to match your path to
'Northwind.mdb on your computer.
Set dbs = wrkAdmin.OpenDatabase("C:\Northwind.mdb", False)
'Close the session.
wrkAdmin.Close
End Sub
For more information about the CreateWorkspace method, search the Help Index for "CreateWorkspace."
Additional query words: pra errors err
Keywords : kberrmsg kbdta DcmHlp
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 22, 1999