Question : Obtain the latest date in SQL datatable using vb.net 2005

Hi I would like to create a function that will querry the database table and return a date that is the newest from all the records (closest to todays date).

How would I go about acomplishing this ? The table is MeetForm and the column is RDate.

Im not sure how to go about obtaining just a piece of info , I generaly just pull a datatable or dataset , is this necesarry ?

Thank you

Michal

Answer : Obtain the latest date in SQL datatable using vb.net 2005

Hi,

I think you can do something like:

SELECT TOP 1 RDate FROM MeetForm

/Carl.
Random Solutions  
 
programming4us programming4us