Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Application Security Testing: An Integral Part of DevOps

Using User-defined Types Within Procedures

This is a beginner's question but in a small database application when I click on a command button the code gives me the error message "Invalid Inside procedure" and highlights the Type statement. The Type statement and the four lines of code including the End Type line seem fine matching book and Microsoft help file examples. Any ideas?

The problem is the placement of the Type declaration. All Type declarations need to be in the declarations section of the form or the code module. They can't be defined within a procedure, as you apparently have done. Once you move the type declaration, there won't be any real change to your code, but it will work fine. Eric

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date