Link to home
Start Free TrialLog in
Avatar of jondecker76
jondecker76

asked on

How do I make a class module?

I'm using the exact same piece of code over and over in every one of my forms, so I thought I would give making a class a try.

However, despite reading several tutorials, none show *how* to actually flag a module as being a class module. In Access 2003, when I go to the modules, and hit new, it just creates a new module like it would any other time - i never get the option of turning it into a class module.

Am I missing something?
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jondecker76
jondecker76

ASKER

Thanks, just what I was looking for
Click on the Modules Container
Click on New
After you open a new module, you select Insert -> Class Module from the Module menu bar.
Create your code and it will save a Class1 which you can change, if you wish.