Hey everyone, I know I should know this, but I'me either having a brain cramp or I've missed something. So..... I have a first function that calls a second function and in the second function I set a return value and send it back to the first function. <whew>.... So I know if the second function worked or errored out. In my second function I was doing this
oCmd.TransferSpreadsheet import, then DoCmd.TransferText export, then returnvalue = true or false depending. This actually worked well, however I had new requirements to meet, so my import now consist of basic ADO stuff, and my export is basic FSO stuff. All of which work, but I now get an auotmation error 440 to be exact, that says my call failed, but in reality it actually works. I guess this would be a good place to show the call from function 1 to function 2 , it is: returnvalue = function2.Run("functionname", parameter, parameter). So in writing this, I guess I really have 2 questions, 1)how do you set and return a result from one function to another. 2) how do you call one function from another function?
I know this was long winded, any thought's would be mighty welcome. Thanks, tons!!
I know this was long winded, any thought's would be mighty welcome. Thanks, tons!!