473,503 Members | 12,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Substitute Of Last() Of Ms Acces 2000 in Sql Server 2000

1 New Member
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(DateAdd("h", -1, MDate)) & "' AND MOut=(Select Last(MOut) From AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateAdd("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
Jul 22 '07 #1
3 1855
voroojak
92 New Member
i am not sure but i think u can use max() instear of last().
Jul 23 '07 #2
achhabra
1 New Member
The same problem I m facing, have u got any solution of the same, if yes thn plz let knw the same,


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(DateAdd("h", -1, MDate)) & "' AND MOut=(Select Last(MOut) From AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateAdd("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
Mar 10 '08 #3
ck9663
2,878 Recognized Expert Specialist
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(DateAdd("h", -1, MDate)) & "' AND MOut=(Select Last(MOut) From AG_IN_OUT_Local where CARDID='" & StrNo & "' and mdate between '" & DateValue(Date) & "' and '" & DateValue(DateAdd("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
Is it the same as MAX or MIN ?

-- CK
Mar 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
1389
by: Wayne... | last post by:
on my hosting acount I have 3 folders that were set up by default: DB LOGS WWW now I understand what each if for obviously, but can i reference back to the databases location outside the www...
4
2752
by: Kona | last post by:
Hello, I would like to known if it is possible to limit acces to a UDB database on Solaris system through db2connect to only specified clients ? My client is a db2connect on Windows platform. ...
1
1411
by: Marc | last post by:
Hello, I want to know how I can save data from a MySQL server in Ms Acces format. My situation: pc1: a MySQL server running; pc2: Access running + ODBC MySQL drivers. I can see the data...
2
16510
by: Jeff Marcum | last post by:
I need to write a query in Access that returns the results of a text field with the spaces replaced with underscores. So, if the data in the field was 'hello world', the query results would show...
5
2878
by: Steve Richter | last post by:
I have a public variable ( "mZipServiceUrl" ) in my code behind class that I am able to substitute into the HTML of the .aspx file: <span onclick="WindowOpen('<%=mZipServiceUrl%>')"...
4
1176
by: Kevin R | last post by:
Hi All. I am currently studying for MCAD C# and the organization I am studying with have assigned me some online courses to work through as part of my studies. However, one of the courses I have...
2
1963
by: malice | last post by:
I have been searching the internet for 12+ hours on how to do this. At this point I'm about to give up. I am using VB .Net 2.0 with the enterprise library jan 2006 release. This is my first time...
2
3501
by: Alex | last post by:
Hello all, I'm at a loss on how to do this. We're using MS SQL 2000 Server and I have a list of fields I need to find the first and last entry for. Here's an example of the table: Number -...
1
6562
by: mcasaurabhsumit | last post by:
Hi friend, I am unable to get last record in sql server 2000. How to find last record in sql server 2000?
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.