¿Error de lógica?
Publicado por Matias (3 intervenciones) el 16/12/2019 20:22:30
Buenas, estoy programando en visual y al intentar insertar un dato específico en sql server me tira error en la tabla "atrBAR" subrayo donde yo creo está el error:
Set oRS = p_dbConnection.Execute(" INSERT INTO entETIQUETAS_DEPOSITO (atrID_USER, atrID_COMPUTER, atrTIMESTAMP, atrID_PRODUCT, atrLOT, atrQUANTITY, atrBAR)
VALUES ('" & user & "','" & computer & "', getdate(),'" & txtPRODUCTO.Text & "','" & txtLOTE.Text & "','" & txtCANT_ETIQ.Text & "','" & txtPRODUCTO.Text & "',LEFT(RTRIM(LTRIM(ISNULL(" & txtPRODUCTO.Text & ", ''))) + ' ', 9) + LEFT(RTRIM(LTRIM(ISNULL(" & txtLOTE.Text & ", ''))) + ' ', 7))")
Set oRS = p_dbConnection.Execute(" INSERT INTO entETIQUETAS_DEPOSITO (atrID_USER, atrID_COMPUTER, atrTIMESTAMP, atrID_PRODUCT, atrLOT, atrQUANTITY, atrBAR)
VALUES ('" & user & "','" & computer & "', getdate(),'" & txtPRODUCTO.Text & "','" & txtLOTE.Text & "','" & txtCANT_ETIQ.Text & "','" & txtPRODUCTO.Text & "',LEFT(RTRIM(LTRIM(ISNULL(" & txtPRODUCTO.Text & ", ''))) + ' ', 9) + LEFT(RTRIM(LTRIM(ISNULL(" & txtLOTE.Text & ", ''))) + ' ', 7))")
Valora esta pregunta


0