vb6 crystal 8
Publicado por niwdeloko (5 intervenciones) el 07/09/2009 14:04:33
hola a todos, kiero hacer un reporte en cr8, tengo al siguiente consulta:
Sql = "select idpro, detalle, sum(cant) as cant, " & _
" und, precio, sum(cant)* precio as Monto from t_venta_d where fecha between " & _
"" & "'" & Format(DTdesde.Value, "yyyy/mm/dd") & "'" & " and " & _
"" & "'" & Format(Dthasta.Value, "yyyy/mm/dd") & "'" & "" & _
"" & " and cajero = '" & Combo1.Text & "'" & "" & _
" group by idpro order by idpro "
set Rst = con.execute(sql)
set Reporte1.datasourece = Rst
Reporte1.show
esta consulta me funciona al peluche con datareport, pero kiero ahcerlopc on crystal y a la fecha no he podido por favor una ayudita
necesito el diseño desde crystal no se si hay que hacer una fortmula o mandarle un sql plis ayudaaaaaaaaaaaaaaaaa agreguen al mail plis me urgeeeeeeeeeee
Sql = "select idpro, detalle, sum(cant) as cant, " & _
" und, precio, sum(cant)* precio as Monto from t_venta_d where fecha between " & _
"" & "'" & Format(DTdesde.Value, "yyyy/mm/dd") & "'" & " and " & _
"" & "'" & Format(Dthasta.Value, "yyyy/mm/dd") & "'" & "" & _
"" & " and cajero = '" & Combo1.Text & "'" & "" & _
" group by idpro order by idpro "
set Rst = con.execute(sql)
set Reporte1.datasourece = Rst
Reporte1.show
esta consulta me funciona al peluche con datareport, pero kiero ahcerlopc on crystal y a la fecha no he podido por favor una ayudita
necesito el diseño desde crystal no se si hay que hacer una fortmula o mandarle un sql plis ayudaaaaaaaaaaaaaaaaa agreguen al mail plis me urgeeeeeeeeeee
Valora esta pregunta
0