yasinirshad
New member
- Joined
- Aug 5, 2007
- Messages
- 3
- Programming Experience
- Beginner
Hi, Please help me with writng procedure. Please see the code below and help me with the procedure syntax.
Can u please help me with the syntax for above code.. I am passing the parameters as string and inserting them into tables.. Thanks in advance.
VB.NET:
Public Sub insertmail(ByVal strFromId As String, ByVal strScope As String, ByVal strToId As String, ByVal strCallId As String, ByVal strRemarks As String)
strFromId = (procedure to get email from id) For this query is "SELECT USER_ID,USER_EMAIL FROM USERS WHERE USER_ID='""'"
strToId = (procedure to get email id to send) For this query is "SELECT USERS.USER_ID,SCOPE.TYPE_LABEL,SCOPE.SCOPE_LABEL,USERS.USER_EMAIL FROM SCOPE INNER JOIN USERS ON SCOPE.SCOPE_ADMIN = USERS.USER_ID"
strmsgSubject = "iCalls: & strScope & strFromId & strCallId"
strMsgBody = "strmsgSubject & strRemarks"
strSQL = "Insert into EPS_CT_EMAIL(strFromId,strScope,strToId,strCallId,strRemarks) values ('" & strFromId & "','" & strScope & "','" & strToId & "','" & strCallId & "','" & strRemarks & "' )"