Hi, need help urgently.. mmm.. I m using sql server 2005 and visual studio 2005... i have 2 queries on visual basic codings and sql statement...
1) How can i retrieve previous year in sql statement to display in datagrid??
Select * From table1 Where Year = Now.Year And year = Now.Year -1
After inserting this line, there is nth appearing in the datagrid at all.. can anyone tell me what is wrong?
2) I would like to do a function that enable user to click on a cell and details regarding that row of datagrid will be display in 3 combo boxes and a textbox. How can i do this?
Many thanks in advance....
1) How can i retrieve previous year in sql statement to display in datagrid??
Select * From table1 Where Year = Now.Year And year = Now.Year -1
After inserting this line, there is nth appearing in the datagrid at all.. can anyone tell me what is wrong?
2) I would like to do a function that enable user to click on a cell and details regarding that row of datagrid will be display in 3 combo boxes and a textbox. How can i do this?
Many thanks in advance....