When I put a 'type' statement inside a procedure, it tells me invalid inside procedure.
When I move it to the declarations section, it tells me invalid outside procedure.
Help ... Where's the middle ???

Put Access specifier also

Private Type Structurename

End Type

Right. Actually all types must be declared either in a module, or in the declarations section of a form. If it's in a form's declaration, it must be set to private.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.