Use 1 function, or multiple functions?
Hey Guys and Gals,
I got a noob question for you. I have an access database that connects to an SQL server. Now I need to pull a file from the server, add information to it, then slice and dice it for some reports.
I was left with about 12 queries that do this process currently, and as much fun as running the macro for this is, I'd rather do it programatically.
I'm going to be using SQL coding rather than calling the queries from my module as I just work better that way.
My big question is:
Should I create 1 big function with definitions for each SQL statement, or should I create 12 small functions each doing their own thing?
My next question is:
What way would be most efficient for hitting the SQL server and while keeping processing time on my end relatively low?
Thanks in advance for all input
Nathan
Hey Guys and Gals,
I got a noob question for you. I have an access database that connects to an SQL server. Now I need to pull a file from the server, add information to it, then slice and dice it for some reports.
I was left with about 12 queries that do this process currently, and as much fun as running the macro for this is, I'd rather do it programatically.
I'm going to be using SQL coding rather than calling the queries from my module as I just work better that way.
My big question is:
Should I create 1 big function with definitions for each SQL statement, or should I create 12 small functions each doing their own thing?
My next question is:
What way would be most efficient for hitting the SQL server and while keeping processing time on my end relatively low?
Thanks in advance for all input
Nathan
Last edited: