in my form i have datagrid and adodc. i set adodc 's porperty and data grid well. all data is displaying well in grid. but i now wan selected data in grid (say for a particular date only) i am doing as on click event of command button
[code=vb]
Dim cn as new adodb.connectio n
dim rs as recordset
cn.open("DSN=no rthwind") ' where northwind is DSN
set rs =cn.execute("se lect * from tablename where datefield= ' " & date & " ')
set adodc1.recordse t = rs
adodc1.refresh
datagrid1.refre sh
[/code]
it gives me blank grid(no data). i have VB6 and MS Access
what i am doing wrong
Anysuggestion
[code=vb]
Dim cn as new adodb.connectio n
dim rs as recordset
cn.open("DSN=no rthwind") ' where northwind is DSN
set rs =cn.execute("se lect * from tablename where datefield= ' " & date & " ')
set adodc1.recordse t = rs
adodc1.refresh
datagrid1.refre sh
[/code]
it gives me blank grid(no data). i have VB6 and MS Access
what i am doing wrong
Anysuggestion
Comment