As mentioned in many of my posts, I come from a mini/mainframe background.
There you write a program in a text editor, compile it and run it.
There were files (like a table) and items (like a record). Each program was an item in a file.
(A line of code was an "attribute" in the item, kind of like a record in an MS file.)
My version of business BASIC called subroutines, either in the same file or to a "cataloged" file. There were no functions as I recall.
You wrote a MAIN program that could then call subroutines, and if needed, these subroutines could pass variables back.
With these commands you created, compiled and ran your program from TCL (a OS command prompt).
Ed filename itemname
Compile filename itemname
Run filename itemname.
Simple enough.
Now here I am in VBA in Access, trying to test code and how things work.
I've got the common stuff figured out as to writing, compiling, decompiling and running code from forms and reports.
But I'm stumped as to the best way to just write some MAIN type code and run it.
First, is there such a thing as a MAIN program in this environment, or is everything a sub or function?
How does one easily test a bit of code, write it as a sub or function and then call it from the immediate window?
Or do most have a simple form with one simple command button to initiate code and test it? If so, do you just put a STOP as the first line to see/step through what's going on?
In other words, I'm not used to having a layer (other than the OS) sitting between me and my code, and I think to start with a MAIN and not subs.
What is best for developers here in Access that want to see behind the curtain without all the foreground stuff cluttering things up?