sql server - How to start stored procedure from Access then continue VBA code execution -
i run sql procedures access using method:
screen.mousepointer = 11 dim cn new adodb.connection dim cmd new adodb.command cn.connectionstring = "provider=sqloledb.1;integrated security=sspi;persist security info=false;initial catalog=mydb;data source=10.0.0.1" cn.open cmd.activeconnection = cn cmd.commandtext = "dbo.procname" cmd.commandtype = adcmdstoredproc cmd.parameters.append cmd.createparameter("@param1", adinteger, adparaminput, , cboparam1combobox.value) cmd.parameters.append cmd.createparameter("@returnmsg", advarchar, adparamoutput, 500) cmd.commandtimeout = 0 cmd.execute msgbox cmd.parameters("@returnmsg").value cn.close screen.mousepointer = 0
but how can start procedure , leave run in background? reason proc might take long time run. , procs want run email user when complete want user start proc via access gui, close gui , wait email.
Comments
Post a Comment