Bueno el problema es que si no deja ningún dato en porcentaje o puntos sale un bonito error del true ole DBGRID 7 con el siguiente mensaje:
data type mismatch during field update
El siguiente código me soluciona hasta cierto punto el problema pero quiero dejarlo como última opción por la carga de datos que puede llegar a tener la tabla:
Código PHP:
Private Sub TdbgridDatos_Error(ByVal DataError As Integer, Response As Integer)
Dim posicion As Long
posicion = RSDtDatos.AbsolutePosition
If DataError = 6156 Then
Response = 0
If TdbgridDatos.Col = 1 Then RSDtDatos.Fields("Porcentaje") = 0
If TdbgridDatos.Col = 2 Then RSDtDatos.Fields("Puntos") = 0
RSDtDatos.Requery
TdbgridDatos.Refresh
End If
RSDtDatos.AbsolutePosition = posicion
End Sub
Gracias por adelantado