Results 1 to 12 of 12

Thread: *Resolved* Help With Calling a SP from VB.Sincere Thanks to VBForums :)

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    86

    Exclamation

    Thank you all for replying back.

    My Bad ...Correct Code Snippet :
    VB Code:
    1. Public Function PpltRS() As Integer
    2.     Dim pRtrn As Integer 'I got This
    3.     pRtrn = 10 ' I got this but why is it here? it isn't being used by anything?
    4.          RS1 p1_Id, c1_Id, Frm_Dt, To_Dt 'Opening the Rs I assume?
    5.     PpltRS =pRtrn
    6.     Debug.Print "pRet ::::: " & Str(pRtrn)
    7. End Function
    Basically what I want to achieve is that the function RS1 will be invoked and we will pass parameters p1_Id, c1_Id, Frm_Dt, To_Dt and,it should give me an Output which confirms that the procedure is run sucessfully .I can be sure if the pRet value matches the Return value after running procedure.

    You are right!!! I have messed up this part of the code. As it is not setting the value from the 1st Function. But how can I fix it.
    Thanks
    Last edited by NewbieVB2003; Jun 5th, 2003 at 02:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width