I'm using the following code to call a stored procedure and return it to a recordset.
DIM cnn As New ADODB.Connection
DIM cmdSQL As New ADODB.Command
Set cnn = CurrentProject.Connection
Set cmdSQL.ActiveConnection = cnn
cmdSQL.CommandText = "GetSortBy"
Set rstSortBy = cmdSQL.Execute()
How can I do the same thing but calling a storedprocedure from a different sql db
Thanks in advance for your help
DIM cnn As New ADODB.Connection
DIM cmdSQL As New ADODB.Command
Set cnn = CurrentProject.Connection
Set cmdSQL.ActiveConnection = cnn
cmdSQL.CommandText = "GetSortBy"
Set rstSortBy = cmdSQL.Execute()
How can I do the same thing but calling a storedprocedure from a different sql db
Thanks in advance for your help