Hi
Does Anybody help me
Substitute Of Last() Function Of Ms Acces 2000 in Sql Server 2000 .
This is my query
-----------------------------------------------------------------------------------------
Select * from AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateA dd("h", -1, MDate)) & "' AND MOut=(Select Last(MOut) From AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateA dd("h", -1, MDate)) & "')")
=============== =============== =============== ===========
this is writtin in Visual basic as frontend here <date> is todays date and
MDate : is date of in
MOut : time
=============== =============== ===========
plz do me help
Does Anybody help me
Substitute Of Last() Function Of Ms Acces 2000 in Sql Server 2000 .
This is my query
-----------------------------------------------------------------------------------------
Select * from AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateA dd("h", -1, MDate)) & "' AND MOut=(Select Last(MOut) From AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateA dd("h", -1, MDate)) & "')")
=============== =============== =============== ===========
this is writtin in Visual basic as frontend here <date> is todays date and
MDate : is date of in
MOut : time
=============== =============== ===========
plz do me help
Comment