View last added record only

ekta

Registered User.
Local time
Today, 17:43
Joined
Sep 6, 2002
Messages
160
Hi there,

I have a table, notes, which has two fields-Notes and NotesDate. I want to create a report based on this table where users want to see only the last record added to the notes table. How can I do this?

Thanx,

Ekta
 
Assuming the last entry has the latest date?
Code:
SELECT TOP 1 notes.Notes, notes.NotesDate
FROM notes
ORDER BY notes.NotesDate DESC;
Will select the latest entry.
 

Users who are viewing this thread

Back
Top Bottom