FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Consulta con campos devueltos NULL
Hola!
Esta consulta se realiza cada hora mediante un timer o tambien se puede hacer mediante un boton pasandole los parametros iHora y eHora
El problema radica en que si dentro de el periodo comprendido entre iHora y eHora no hay ningun registro el campo HTotal es null por lo tanto cuando quiero asignar el valor correspondiente a la rejilla (StringGrid1) me devuelve un error de "Cast" --------------------------- Jugoso --------------------------- Could not convert variant of type (Null) into type (String) --------------------------- Aceptar --------------------------- Estuve buscando en el foro y no encontre alguna respuesta para ACCESS ya se que no les gusta access pero ... a ver si alguien me ayuda. Saludos! |
#2
|
||||
|
||||
Hola se que esta no es la solucion, pero porq en lugar de stringgrid no usas un dbgrid, te ahorrarias mas trabajo
__________________
...Yo naci en esta ribera del arauca vibr@d0r Soy hermano de la espuma, de la garza, de la rosa y del sol... Viva Venezuela |
#3
|
|||
|
|||
Si eso lo se, lo que pasa es que estoy tabulando por horas y quiero saber los datos en cada hora
____________________ Hora | Sacos | Total | ____________________ 10 - 11 | 1550 | 9876 | ____________________ 11 - 12 | 2340 | 10657| ____________________ 12 - 13 | 0 | 0| ____________________ 13 - 14 | 12| 480| ____________________ Usar un dbgrid para la columna hora seria mas engorroso ¿no crees? |
#4
|
||||
|
||||
nop, ese valor se lo puedes dar en el evento ongettext del field hora de la consulta, engorroso es el stringgrid, bueno por lo menos a mi me da comezon utilizarlo
__________________
...Yo naci en esta ribera del arauca vibr@d0r Soy hermano de la espuma, de la garza, de la rosa y del sol... Viva Venezuela |
#5
|
|||
|
|||
Bueno se convirtio en capricho usar el stringgrid y la unica solucion que encontre fue esta
Aun asi, si alguien conoce un modo mas elegante de hacer esto se agradece. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
FOR XML + SQL SERVER 200 y campos con valor null | Enan0 | SQL | 2 | 07-08-2007 00:45:55 |
Campos null. Asignación | jlrbotella | Conexión con bases de datos | 3 | 23-03-2007 16:26:27 |
Campos Not null de MSQL | emeritos | SQL | 6 | 13-01-2007 08:29:02 |
Unir contenido de campos omitiendo los null | el-otro | SQL | 2 | 28-09-2004 08:39:23 |
suma de fila con campos a null en una consulta sql | soyhugo | Varios | 8 | 02-02-2004 19:01:33 |
|