
07/08/2008, 00:45
|
| | Fecha de Ingreso: junio-2008 Ubicación: Valencia
Mensajes: 152
Antigüedad: 16 años, 8 meses Puntos: 3 | |
Respuesta: Uso de variables en un select en formulario VB Hola chelodelsur
No se si te entendi del todo bien, yo para poder traerme de la base de datos todos los registros de vani.Haria esto:
Código:
"Select call_Id as `ID Llamada, start_date as `fecha inicio`
from `call`
where start_date>='2008/07/15'
and start_date <='2008/07/15'
and start_time >='00:00'
and start_time<='23:59:59'
& Vani &
order by call_id desc ", cnn, adOpenKeyset, adLockOptimistic
Código:
Dim Vani As String
If txtAni <> "" Then
Vani = " and ani='" & txtAni &"'"
Else
Vani = ""
End If
Espero que te sirva |