D
David Fúnez
Hi;
Why, if i use the code #1 works fine, but if i use the code #2 launches an
error, it doesn't let me concatenate the SELECT.
Any help
Thanks on advance.
*** code #1 all in a single line***
cmd.CommandText = "SELECT a.Id_producto, a.Nombre, a.Precio, b.nombrepre
FROM producto a, presentacion b WHERE a.id_presentacion = b.id_presentacion"
*** code #2 ***
cmd.CommandText = "SELECT a.Id_producto," & _
"a.Nombre, a.Precio, b.nombrepre" & _
"FROM producto a, presentacion b" & _
"WHERE a.id_presentacion = b.id_presentacion"
Why, if i use the code #1 works fine, but if i use the code #2 launches an
error, it doesn't let me concatenate the SELECT.
Any help
Thanks on advance.
*** code #1 all in a single line***
cmd.CommandText = "SELECT a.Id_producto, a.Nombre, a.Precio, b.nombrepre
FROM producto a, presentacion b WHERE a.id_presentacion = b.id_presentacion"
*** code #2 ***
cmd.CommandText = "SELECT a.Id_producto," & _
"a.Nombre, a.Precio, b.nombrepre" & _
"FROM producto a, presentacion b" & _
"WHERE a.id_presentacion = b.id_presentacion"