Hi All,
I want to get the Days between Todays date i.e. 28/03/2013 and date on a (access db) record
Date column in Db is called "OrderDate" stored as date/time in dd/mm/yyy Format
I was trying something like this but cant seem to get it working.
The end goal is to have a datagridview looks like
ReturnOrder ---------------------- DaysOutstanding
1929933 --------------------------------- 10
8727273 --------------------------------- 5
Can anyone help out here
I want to get the Days between Todays date i.e. 28/03/2013 and date on a (access db) record
Date column in Db is called "OrderDate" stored as date/time in dd/mm/yyy Format
vb.net Code:
SQL5= "SELECT [ReturnOrder], datediff(day,[OrderDate],getdate()) FROM [Update]" 'both don't work SQL5= "SELECT [ReturnOrder], datediff(day,[OrderDate],getdate()) FROM [Update] GROUP by [ReturnOrder] ORDER BY datediff(day,[OrderDate],getdate()) DESC" da5 = New OleDb.OleDbDataAdapter(SQL5, con5) da5.Fill(ds5, "Update") dgvLeadtime.DataSource = ds5.Tables(0).DefaultView con5.Close()
I was trying something like this but cant seem to get it working.
The end goal is to have a datagridview looks like
ReturnOrder ---------------------- DaysOutstanding
1929933 --------------------------------- 10
8727273 --------------------------------- 5
Can anyone help out here