However, when this identical stored procedure is ran manually for Sybase central, it works.
It must be some issue with VB and the parameters I am using.
Thanks for any help. Here is the code:
SQL1 = "SELECT CMC_GRGR_GROUP.GRGR_CK, CMC_MEME_MEMBER.MEME_CK " & _
"From CMC_MEME_MEMBER, CMC_GRGR_GROUP " & _
"WHERE CMC_GRGR_GROUP.GRGR_ID = '" & GroupID2 & "' " & _
"AND CMC_MEME_MEMBER.GRGR_CK = CMC_GRGR_GROUP.GRGR_CK"
sqlset.Open SQL1, Conn, , , adCmdText
If sqlset.EOF = False Then
sqlset.MoveFirst
End If
Dim Comm As New ADODB.Command
Comm.ActiveConnection = Conn
Comm.CommandType = adCmdStoredProc 'a constant
Comm.CommandText = "SP_NOTE_UPDATE " & sqlset!MEME_CK & ", " & sqlset!GRGR_CK & ", '" & NoteBox & "'"
Comm.Execute
It must be some issue with VB and the parameters I am using.
Thanks for any help. Here is the code:
SQL1 = "SELECT CMC_GRGR_GROUP.GRGR_CK, CMC_MEME_MEMBER.MEME_CK " & _
"From CMC_MEME_MEMBER, CMC_GRGR_GROUP " & _
"WHERE CMC_GRGR_GROUP.GRGR_ID = '" & GroupID2 & "' " & _
"AND CMC_MEME_MEMBER.GRGR_CK = CMC_GRGR_GROUP.GRGR_CK"
sqlset.Open SQL1, Conn, , , adCmdText
If sqlset.EOF = False Then
sqlset.MoveFirst
End If
Dim Comm As New ADODB.Command
Comm.ActiveConnection = Conn
Comm.CommandType = adCmdStoredProc 'a constant
Comm.CommandText = "SP_NOTE_UPDATE " & sqlset!MEME_CK & ", " & sqlset!GRGR_CK & ", '" & NoteBox & "'"
Comm.Execute