| Junior Member with 21 posts. | | Join Date: Jan 2009 Location: NY Experience: Advanced | |
Well (and I mean this as a tutorial not literally for those that know VBA)....A module is a code file that everything in your projct can share without declaring it with a dim statement. A class is like a module but you must declare it and every declaration contains its own copy of its variables. A Form, report, table, or view are a from of classes (aka object). A module you create the same way you would a form,table, view,etc. it is one of the options on the left side of your database container window(look for the word module..then click new on the top of the same container window). Alternatively you can go to insert...modules. As for where to put it...you dont have a choice...just add one.
Also..by example....If you add a new module, be default it is named module1. Within module1 place the following code.....
Public Sub MyTest()
msgbox "Yes, another hello world!",vbokonly,"Some MessageBox Title"
end sub
then behind the command button of you form simple place the word
MyTest
Hope this helps..This is very basic...The best I can offer after this is to have you send me you project so I may look at it...along with some sample data....so I know specifically what you are dealing with..if necessary. I am Grs85374@yahoo. |