Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/02/2002, 06:18
agmiron
 
Fecha de Ingreso: febrero-2002
Mensajes: 8
Antigüedad: 23 años, 2 meses
Puntos: 0
Re: consulta SQL en Access no funca???

Prueba con esto:

FI=#21/03/2002# 'Fecha Inicial
FA=month(now) & "/" & day(now) & "/" & year(now) 'Fecha Actual del Sistema

dttFecha=month(FI) & "/" & day(FI) & "/" & year(FI)

objCmd.CommandText = "SELECT count(user_id) as cnt FROM user_log WHERE log_date between # "& dttFecha &" # AND #" & FA & "#"
objRst.Open