This was the code I have written....
Code:
Dim rs1 as new adodb.recordset
Private Sub Command1_click
dim connstr ,cmdtext as string
connstr = "Provider = MSDAORA.1;Driver = {Microsoft ODBC for Oracle};Server=;database = beq-local.world;userid=scott;password = tiger;Persist Security Info = True"
cmdtext = "SELECT * FROM MY_TABLE"
rs1.open cmdtext,connstr
set datagrid1.datasource = rs1
end sub
Upto the rs1.open statement it works fine..but at the line
set datagrid1.datasource = rs1
It gives error
Runtime Error : 7004
The rowset is not bookmarkable
What is the cause of this error and ahow to prevent it ?
Enter your message below
Sign in or Join us (it's free).