Jun 28, 2007 #1 kingz2000 Programmer May 28, 2002 304 DE Hi people, I'm trying to get an SQL for the latest datetime in this table..so hence I want ID=3 to be given.PLEASE HELP!! ID DATE TIME 1 1.1.07 5:00 2 2.1.07 6:30 3 2.1.07 7:00
Hi people, I'm trying to get an SQL for the latest datetime in this table..so hence I want ID=3 to be given.PLEASE HELP!! ID DATE TIME 1 1.1.07 5:00 2 2.1.07 6:30 3 2.1.07 7:00
Jun 28, 2007 #2 PHV MIS Nov 8, 2002 53,708 FR A starting point (SQL code): SELECT Max([DATE]+[TIME]) FROM yourTable Anyway, why TWO fields for a SINGLE DateTime value ? Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
A starting point (SQL code): SELECT Max([DATE]+[TIME]) FROM yourTable Anyway, why TWO fields for a SINGLE DateTime value ? Hope This Helps, PH. FAQ219-2884 FAQ181-2886