ACC2000: Error '3028' Using CreateWorkspace with Password ArgumentID: Q208804
|
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:
If you choose not to specify a password, the same syntax does not cause an error.Run-time error '3028': Can't start your application. The workgroup information file is missing or opened exclusively by another user.
Microsoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/overview/overview.aspWhen 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 Microsoft products listed at the beginning of this article.
CAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file
and perform these steps on a copy of the database.
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
Call TestWorkspace
For more information about CreateWorkSpace method, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "createworkspace" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
Additional query words: pra errors err prb
Keywords : kberrmsg kbdta DcmHlp
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 6, 1999