'Sub' or 'Function' expected
A Declare statement does not specify either Sub or Function. Declare identifies an external procedure and must specify which kind of procedure.
Error ID: BC30215
To correct this error
- Add either the Sub or Function keyword to the Declare statement.