Explain how sample DB works please

jaxhere

Registered User.
Local time
Today, 08:09
Joined
Mar 6, 2007
Messages
13
I downloaded the sample database in
http://www.access-programmers.co.uk/forums/showthread.php?t=105243
and have figured out how to use it, however, I still have a puzzle. In the Visual Basic code window there are two Microsoft Access Class Objects shown, one for the Form_frmInfo and the other named Form_frmLog.

I got the program to work for me in a new application by copying the code from Form_frmLog into the code window which was created when I opened my own frmInfo form. My question is the following: How did the Form_frmLog Class Object get into the Project in the first place? I've tried to add one to the project and the VB project options only allow me to add a Module or a Class Module, but not a Class Object. So, how is this done? and more importantly, why was it done in this program?
 
The class object is automatically created when you create a new form (so long as the "Has Module" property is set to Yes). Go to the Access Window (press F11), select Forms, and then click on New. Select Design view, press F4 to open the Properties View, and then make sure "Has Module" is set to Yes. (That property is near the bottom on the "All" tab in the Properties window.) Save the form as something like "f_Test". Close the form and press Alt-F11 to open the code window. There's now a class object called "Form_f_Test".
 

Users who are viewing this thread

Back
Top Bottom