Hi,
My Query is "SELECT * FROM table WHERE Acc_no like '1*' "
If I run this query in Ms-Access directly, it is working fine.
but if i try to show the same result in the datagrid, it is not showing any results.
My code is :
strsql = "SELECT * FROM table WHERE Acc_no like '1*' "
Set rs = Login.conn.Exec ute(strsql)
Adodc1.RecordSo urce = strsql
Adodc1.Refresh
If I give the same like below, It is working fine.
strsql = "SELECT * FROM table WHERE Acc_no = '1' "
Set rs = Login.conn.Exec ute(strsql)
Adodc1.RecordSo urce = strsql
Adodc1.Refresh
Could you help me out in this?
Thanks in advance.
Regards,
Venkat.
My Query is "SELECT * FROM table WHERE Acc_no like '1*' "
If I run this query in Ms-Access directly, it is working fine.
but if i try to show the same result in the datagrid, it is not showing any results.
My code is :
strsql = "SELECT * FROM table WHERE Acc_no like '1*' "
Set rs = Login.conn.Exec ute(strsql)
Adodc1.RecordSo urce = strsql
Adodc1.Refresh
If I give the same like below, It is working fine.
strsql = "SELECT * FROM table WHERE Acc_no = '1' "
Set rs = Login.conn.Exec ute(strsql)
Adodc1.RecordSo urce = strsql
Adodc1.Refresh
Could you help me out in this?
Thanks in advance.
Regards,
Venkat.
Comment