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 is not being used by anything?
  4.          RS1 p1_Id, c1_Id, Frm_Dt, To_Dt 'Opening the Rs I assume?
  5.     PpltRS = pRet 'Where is pRet coming from????
  6.     Debug.Print "pRet ::::: " & Str(pRet)
  7. End Function