>Dim mWorkSpace as Workspace
>
>
> The line above seems to be erratic. In some of my programs there seems to be no problem but in others I get the message UNDEFINED VARIABLE TYPE.
>
>
> Can anyone explain and solve this.
Workspace is a class of the DAO component. You need to reference "Microsoft DAO" in order to use it.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com