Invalid SQL syntax - expected a procedure name. (Error 3781)

Applies to: Access 2013 | Access 2016

This error occurs when trying to create or drop a procedure using SQL DDL's CREATE PROCEDURE or DROP PROCEDURE syntax. It occurs if a valid name is not specified. For example, the following statement would generate the error: DROP PROCEDURE.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.