ACC97: Error '3028' Using CreateWorkspace with Password Argument

Last reviewed: March 3, 1998
Article ID: Q181961
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

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.

If you choose not to specify a password, the same syntax does not cause an error.

RESOLUTION

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)

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. In Microsoft Access 97, open the Northwind sample database (Northwind.mdb).

  2. Create a new module and type or paste the following code:

    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
    
    

  3. On the Debug menu, click Compile And Save All Modules. Save the module as modTestWorkspace.

  4. Close the module. On the Tools menu click Security, and then click User And Group Accounts.

  5. Click the Change Logon Password tab and change your password to "test" (without the quotation marks)

    NOTE: This article assumes that you have logged into the database as the "Admin" user. If the User Name field within the Change Logon Password dialog reads anything other than Admin, close the database and log on as Admin before continuing.

  6. Close the database, and then close Microsoft Access 97.

  7. Run Microsoft Access 97, and log on as the "Admin" user with a password of "test" (without the quotation marks).

  8. To test this procedure, type the following line in the Debug window, and then press ENTER.

    Call TestWorkspace

    Note the error message that Microsoft Access 97 returns.

REFERENCES

For more information about the CreateWorkspace method, search the Help Index for "CreateWorkspace."


Additional query words: pra errors err
Keywords : DcmHlp kberrmsg kbdta
Version : WINDOWS:97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.