Microsoft KB Archive/254922

From BetaArchive Wiki
Knowledge Base


Visio5: Using Data Access Objects in Visual Basic for Applications Causes an Automation Error

PSS ID Number: 254922

Article Last Modified on 11/25/2003



The information in this article applies to:

  • Microsoft Visio Standard 5.0x
  • Microsoft Visio Professional 5.0x
  • Microsoft Visio Technical 5.0x
  • Microsoft Visio Enterprise 5.0x
  • Microsoft Visual Basic for Applications



This article was previously published under Q254922

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry


SYMPTOMS

When you use Data Access Objects (DAO) in Visual Basic for Applications in Visio 5.x, you may receive the following error message:

Run-time error '429': ActiveX component can't create object

CAUSE

The Setup program for Visio 5.x does not add the DAO design-time licensing key to the registry. This key is necessary for running Visual Basic for Applications programs that use Data Access Objects.

RESOLUTION

To resolve the problem, use the following steps to add the DAO design-time licensing key to the registry. If you use your Visual Basic for Applications program on multiple computers, you need to update the registry on each computer.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To add the DAO design-time licensing key:

  1. Click Start, and then click Run.
  2. In the Run dialog box, type regedit, and then click OK.
  3. In Registry Editor, open the HKEY_CLASSES_ROOT folder and scroll down to the Licenses folder.
  4. Click the Licenses folder. On the Edit menu, point to New, and then click Key.


A new registry key appears.

  1. Rename the key F4FC596D-DFFE-11CF-9551-00AA00A3DC45.
  2. In the right pane of the Registry Editor window, double-click the default entry for the new key.
  3. In the Edit String dialog box, for Value Data, type mbmabptebkjcdlgtjmskjwtsdhjbmkmwtrak, and then click OK.
  4. If you use your Visual Basic for Application program on other computers, click Export Registry File on the Registry menu to create a registry file that includes the new key.
  5. On the Registry menu, click Exit to close Registry Editor.

If you exported the registry file in step 8, do the following on each computer that runs your Visual Basic for Applications program:

  1. Copy the file that you exported into the Windows folder.
  2. Double-click the file to add the DAO licensing key.


REFERENCES

For additional information about this behavior, click the article number below to view the article in the Microsoft Knowledge Base:

189607 DAO Error After Installing Visual Basic DAO Application



Additional query words: prb 429 can t

Keywords: kbdtacode kberrmsg KB254922
Technology: kbVBASearch kbVisio500xSearch kbVisioSearch kbZNotKeyword3 kbZNotKeyword6