Hi All,
I have used the following condition in my SQL
WHERE DischargeDate >= (#10/01/2009#) and DischargeDate <= (#12/31/2009#)
But some patients who Discharged on 31/12/2009 are not coming I think coz of the timing the field keeps the time value too.
I have also tried the following condition instead of above but still not success.
DischDate < DateAdd("d",1,#12/31/2009#)
I have also used between instead off <= and >= but still not bring the rows which patients discharge on 31/12/2009
I also tried the folllowing condition in my SQL
Between dischargedate format(01/09/2009,"dd/mm/yyyy") and format(31/12/2010,"dd/mm/yyyy") & ?????
I don't konw how can I used the time constant value i.e. 23:59:59
I hope it does make sense to you.
Thanks in advance
Regards
Farhan
I have used the following condition in my SQL
WHERE DischargeDate >= (#10/01/2009#) and DischargeDate <= (#12/31/2009#)
But some patients who Discharged on 31/12/2009 are not coming I think coz of the timing the field keeps the time value too.
I have also tried the following condition instead of above but still not success.
DischDate < DateAdd("d",1,#12/31/2009#)
I have also used between instead off <= and >= but still not bring the rows which patients discharge on 31/12/2009
I also tried the folllowing condition in my SQL
Between dischargedate format(01/09/2009,"dd/mm/yyyy") and format(31/12/2010,"dd/mm/yyyy") & ?????
I don't konw how can I used the time constant value i.e. 23:59:59
I hope it does make sense to you.
Thanks in advance
Regards
Farhan
Last edited: