Visual Basic - DATAENVIRONMENT

Life is soft - evento anual de software empresarial
 
Vista:

DATAENVIRONMENT

Publicado por RAFAEL (44 intervenciones) el 07/09/2008 02:26:15
tengo estas lineas
Ssql = "Select tipo_doc, num_doc, fecha, codigo, unidad, descripcion, ingreso, prec_unit, prec_parc From Ingreso_mat Where Fecha between CDATE('" & Text9.Text & "') and CDATE('" & Text10.Text & "')ORDER BY Num_doc ASC;"
DataEnvironment1.rsCommand2.Open Ssql, Cnn
DataReport2.Show

el resultado que me genera es asi:

DOCUMENTO: NUMERO: FECHA:
CODIGO: UND.: DESCRIPCION: CANT.: PREC/UNIT.: PREC/PARC.:
NOTA ENTREGA 80097860 01/09/2008
7014160 GALON ACEITE MULTIGRADO TELLUS T-68 110 $4.58 $503.36
NOTA ENTREGA 80097860 01/09/2008
7003018 GALON ACEITE PARA MOTOR DIESEL 15W-40 110 $4.73 $520.30
NOTA ENTREGA 80097860 01/09/2008
9007113 GALON DETERGENTE DESENGRASANTE LIMPIADOR 40 $10.07 $402.80
NOTA ENTREGA 80097860 01/09/2008

El dataenvironment lo modifique para agrupar por el numero de documento para que me de mas ordenado y mi problema es que no se como asigarle el SQL para un rsCommand2_Grouping, si sabes la respuesta te voy a agradecer muchisimo si me das una manito.
en que lugar de este codigo lo modifico:

Ssql = "Select tipo_doc, num_doc, fecha, codigo, unidad, descripcion, ingreso, prec_unit, prec_parc From Ingreso_mat Where Fecha between CDATE('" & Text9.Text & "') and CDATE('" & Text10.Text & "')ORDER BY Num_doc ASC;"
DataEnvironment1.rsCommand2.Open Ssql, Cnn

Gracias por la respuesta
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder