say I have a stored procedure called sp_FindUser which has an input parameter of projectID, and an output parameterr of userID
and then I write another stored proceedures
this time it creates a temp table full of project id's
ie
select ProjectID
into #Temp
from projects
now I want to look at all the records in #temp and find the userID using my first stored procedure
In
vb I could open up all the records in #temp and loop round executing a function for each projectid.
eg
rs.open (select * from #Temp)
do until rs.eof
debug.print rs.fields(Projectid)
debug.print sp_FindUser(rs.fields(projectid))
etc etc
have you any idea how i go about this?