<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hola a todos. Un cordial saludo. El problema es el siguiente: tengo el
siguiente código de VB
<p>Private Sub cmdCargrManif_Click()
<br>Dim clsPrueba As clsConex
<br> Set clsPrueba = New clsConex
<br> With clsPrueba.Command
<br> .CommandType = adCmdStoredProc
<br> .CommandText = "Sp_CargaManif"
<br> .Parameters.Append .CreateParameter("@pFecha",
adChar, adParamInput, "20031130")
<br> Set clsPrueba.Rst = .Execute
<br> End With
<br>End Sub
<p>Este procedimiento llama a Store Procedure de VB, pasandole como parametro
una fecha, pero al ejecutrse la instrucción .Execute VB me devuelve
el error: Procedure 'Sp_CargaManif' expects parameter '@pFecha',
which was not supplied. Es decir no se pasa o no se lee el parametro.
<p>Muchas gracias de antemano a quien pueda ayudarme
<p>La estructura del Store procedure es la siguiente
<p>CREATE PROCEDURE Sp_CargaManif @pFecha char(10) AS
<br>
<br>SELECT NumTour, Fecha, Nombre, Procedencia, CodOpc, CodLoc, CodLiner,
<br>
CodCloser1, CodCloser2,Calificacion, NumCtto
<br>
Deposito, Observaciones
<br>FROM tblManifiesto
<br>WHERE Fecha = @pFecha
<br>
<br>
<br>
<br>
<br> </html>
Leer las respuestas