
01/11/2004, 11:16
|
| | Fecha de Ingreso: junio-2004
Mensajes: 70
Antigüedad: 20 años, 11 meses Puntos: 0 | |
Query SQL vacio? Que tal, quisiera saber como se puede manejar la siguiente situacion:
que tu hagas un query SQL y que resulte vacio, por ejemplo:
Set mostrar = Server.CreateObject("ADODB.Recordset")
mostrar.ActiveConnection = MM_skyworks_STRING
mostrar.Source = "SELECT * FROM dbo.tmovimientos where fecha between '" & inicio & "' AND '" & termino & "' ORDER BY id DESC"
mostrar.CursorType = 0
mostrar.CursorLocation = 2
mostrar.LockType = 1
mostrar.Open()
Si resulta que hay registros que haga una cosa y si no, la otra
Agradeceria mucho la ayuda |