L
Larry
If Functions are used to return a value and Subs perform event based actions.
How should I run a module that doesn't return a value and isn't necessary
event based?
I periodically import a csv file. Once, after each import, I want to run a
Module that opens the table to cycle through the records to do a lot of field
manipulation and update each record and end up with a cleaned up table. This
is just to prep the file for various other uses.
It would seem I should be able to execute it from a macro, but the Runcode
in macros seems to want only a Function Module to run.
Should I just create a Function that Calls the Sub Module and ignore that
the function wants to return a value?
Or, should I create a dummy form and use the OnLoad event to run the code I
need?
But both of these seem like a round about way to get there since I don't
want to view the data in a for and don't want a value returned.
What's the correct way to run this kind of process?
How should I run a module that doesn't return a value and isn't necessary
event based?
I periodically import a csv file. Once, after each import, I want to run a
Module that opens the table to cycle through the records to do a lot of field
manipulation and update each record and end up with a cleaned up table. This
is just to prep the file for various other uses.
It would seem I should be able to execute it from a macro, but the Runcode
in macros seems to want only a Function Module to run.
Should I just create a Function that Calls the Sub Module and ignore that
the function wants to return a value?
Or, should I create a dummy form and use the OnLoad event to run the code I
need?
But both of these seem like a round about way to get there since I don't
want to view the data in a for and don't want a value returned.
What's the correct way to run this kind of process?