Microsoft KB Archive/137284

{|
 * width="100%"|

Delete from Database Instructions in DATABASE.WRI Incorrect

 * }

Q137284

-

The information in this article applies to:


 * Microsoft Project for Windows, version 4.0

-

SYMPTOMS
In the Microsoft Project version 4.0 DATABASE.WRI file, the To delete project files from a database. section gives instructions to delete a project. Step 4 instructs you to enter the following line Macro DeleteFromDatabase. If you try to run this macro, however, you will receive the following message:

Expected Function or variable

WORKAROUND
Replace Step 4 with the following instruction:


 * 1) Enter the following line in the body of the macro:

The DeleteFromDatabase method is not a Macro; therefore, it does not need to be qualified with the Macro method.

The DeleteFromDatabase method can also be added directly to the command of a toolbar button or menu item without creating a macro.

Additional query words: procedure write incorrect

Keywords :

Issue type : kbprb

Technology : kbProjectSearch kbProject400