YO coloco este codigo... Pero no me resulta No se si estara bien?
************************************************** *********
For j = 1 To frmDetalle.gCiclos.Rows - 1
frmDetalle.Text1 = Val(frmDetalle.Text1) + DatePart("n", frmDetalle.gCiclos.TextMatrix(j, 1))
frmDetalle.totales.TextMatrix(1, 0) = Format(Val(frmDetalle.Text1) / 60, "##") & ":" & Format(Val(frmDetalle.Text1) Mod 60, "###")
frmDetalle.Text2 = Val(frmDetalle.Text2) + DatePart("n", frmDetalle.gCiclos.TextMatrix(j, 2))
frmDetalle.totales.TextMatrix(1, 1) = Format(Val(frmDetalle.Text2) / 60, "##") & ":" & Format(Val(frmDetalle.Text2) Mod 60, "###")
frmDetalle.Text3 = Val(frmDetalle.Text3) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 3))
frmDetalle.totales.TextMatrix(1, 2) = Format(Val(frmDetalle.Text3) / 60, "##") & ":" & Format(Val(frmDetalle.Text3) Mod 60, "###")
frmDetalle.Text4 = Val(frmDetalle.Text4) + Val(frmDetalle.gCiclos.TextMatrix(j, 4))
frmDetalle.totales.TextMatrix(1, 3) = frmDetalle.Text4
frmDetalle.Text5 = Val(frmDetalle.Text5) + Val(frmDetalle.gCiclos.TextMatrix(j, 5))
frmDetalle.totales.TextMatrix(1, 4) = frmDetalle.Text5
frmDetalle.Text6 = Val(frmDetalle.Text6) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 6))
frmDetalle.totales.TextMatrix(1, 5) = Format(Val(frmDetalle.Text6) / 60, "##") & ":" & Format(Val(frmDetalle.Text6) Mod 60, "###")
frmDetalle.Text7 = Val(frmDetalle.Text7) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 7))
frmDetalle.totales.TextMatrix(1, 6) = Format(Val(frmDetalle.Text7) / 60, "##") & ":" & Format(Val(frmDetalle.Text7) Mod 60, "###")
frmDetalle.Text8 = Val(frmDetalle.Text8) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 8))
frmDetalle.totales.TextMatrix(1, 7) = Format(Val(frmDetalle.Text8) / 60, "##") & ":" & Format(Val(frmDetalle.Text8) Mod 60, "###")
frmDetalle.Text9 = Val(frmDetalle.Text9) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 9))
frmDetalle.totales.TextMatrix(1, 8) = Format(Val(frmDetalle.Text9) / 60, "##") & ":" & Format(Val(frmDetalle.Text9) Mod 60, "###")
Next j
************************************************** **********
__________________
Ikki
|