BC30420: 'Sub Main' was not found in '<name>'

Sub Main is missing, or the wrong location has been specified for it.

Error ID: BC30420

To correct this error

  1. Supply the missing Sub Main statement, or if it exists, move it to the appropriate location in the code. For more information on Sub Main, see Main Procedure in Visual Basic.

  2. Specify the location of the project's startup object in the Startup form box of the Project Designer.

See also