Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21194

does anyone know how to solve for the following query to stored procedure scenario

$
0
0
*sigh * the directive from my lead programmer who has now pulled back from my project a subject matter expert meaning less time talking with him overall

He directed me to build out code to generate a result with a stored procedure.. then he changed his mind again and wanted the stored procedure date driven by way of paramaters so I did that and that worked just like the one previous and so now he is saying he wants a new solution and that it is sink or swim for me.. arrgh.. that ticks me off. Get your requirements solid and not sliding all over the place so that I KNOW what I have to build the FIRST time.

Anyway he wants a select statement query that will loop through a recordset grabbing parameter in the query.

These parameters values will be passed to a waiting stored procedure that will take this data and place it into a temp table


The temp table wiill be be counted through which will then call an update statement to another table.


Now I have the stored procedure portion almost ready to go.

My question is I am less familiar with the VB6 ado code of looping through the recordset.

Now I know that I want to encapuslate it to say this.. as seen below but I had forgotten how the select statement gets called within that loop and how the params in this case two of them would be passed to the stored procedure to be used
sql = "SELECT

Code:


If Not rs.EOF Or Not rs.BOF Then
  Do While Not rs.EOF
     
   
 
    rs.MoveNext
      Loop
Else
    MsgBox "No Records are available for processing"
End If


Viewing all articles
Browse latest Browse all 21194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>