02-29-2000 11:02 AM
04-22-2002 01:41 PM
05-03-2006 03:02 PM
I have had exactly the same issue. I want to do an sql query.
between two date times ie. perhaps the same date, but two different times.
I have tried using the following: SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= 2006-06-06 and
SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= 2006\06\06.
The database format for datetime is 2006\06\06 13:45:32
05-03-2006 03:04 PM
neither of the above queries worked and so I
tried using the # signs as suggested above. This didn't work either.
Any other possibilities?
Anyone tried this?SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= 2006-06-06
05-03-2006 03:23 PM
05-03-2006 03:29 PM
Sorry, the database type is Access.
I just tried the following query SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= '2006/05/01 13:24:28'
and SELECT * FROM ValveMeritData WHERE MeritTestDateTime >= '2006/05/01' (which gave a data mismatch error).
I am going to try the query in access now. I had pretty good success with other types of queries, just writing them in
Labview and testing.
Any other suggestions?
05-03-2006 03:30 PM
Hello again.
Have any of you done these types of queries with Access successfully? It would be helpful to know that
the correct syntax does exist if I can just find it..
cheers,
05-03-2006 04:45 PM
10-07-2011 03:25 AM
I use this ...WHERE (Some_date_column <= #2011-10-07 23:59:59#).
10-07-2011 03:25 AM
I use this ...WHERE (Some_date_column <= #2011-10-07 23:59:59#).