473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Rowset not bookmarkable

12
Hi! can anyone tell me what should i do about this error."error 7004 Rowset not bookmarkable". I get this error when i try to set the datasource of a datagrid to recordset i created.
Code:

rs.Open "table", connection
Set Datagrid.DataSource = rs
Mar 18 '07 #1
3 5676
cmrhema
375 256MB
Hi! can anyone tell me what should i do about this error."error 7004 Rowset not bookmarkable". I get this error when i try to set the datasource of a datagrid to recordset i created.
Code:

rs.Open "table", connection
Set Datagrid.DataSource = rs
Before setting the datagrid to datasource you should specify the cursor location.
1. rs.CursorLocation=adUseClient
put down the above code before you open the recordset
thereafter while opening the table also delcare the CursorType and Lock type
2. rs.Open "select * from table",connection, adOpenDynamic, adLockOptimistic
lastly set the datasource to the data grid
3. Set Datagrid.DataSource = rs

So, your code must be in the order 1,2,3

Check out and let me know whether it worked or not.
Good Luck
Mar 19 '07 #2
ansumansahu
149 100+
Hi! can anyone tell me what should i do about this error."error 7004 Rowset not bookmarkable". I get this error when i try to set the datasource of a datagrid to recordset i created.
Code:

rs.Open "table", connection
Set Datagrid.DataSource = rs
Hi ,

I think you are using ADO. If so please check the cursor location properties.

thanks
ansuman
Mar 19 '07 #3
bahog
12
Before setting the datagrid to datasource you should specify the cursor location.
1. rs.CursorLocation=adUseClient
put down the above code before you open the recordset
thereafter while opening the table also delcare the CursorType and Lock type
2. rs.Open "select * from table",connection, adOpenDynamic, adLockOptimistic
lastly set the datasource to the data grid
3. Set Datagrid.DataSource = rs

So, your code must be in the order 1,2,3

Check out and let me know whether it worked or not.
Good Luck

I tried it and it works.... Thanks....
Mar 21 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Andrea Sansottera | last post by:
Hi fellows, I was wondering if in the Java API there's a way to easily map a disconnected RowSet to a JTable... I have looked at the doc but i did not found anything. What I want is simply do...
1
by: Konrad Karall | last post by:
Hi everybody! I have to evaluate MySQL 5.0 for a new DB-project. Does anyone has a idea how to get a Rowset from a stored procedure on a MySQL-server 5.0 I have tried CREATE PROCEDURE...
0
by: V.Boomessh | last post by:
Hai all I am creating an VB.NET application which has some reporting involved. i use Crystal report for VS.NET to create the report I have designed the report(rpt file) by making a connection...
2
by: gigi | last post by:
I have a strange problem with an OleDB call to a stored procedure that returns a rowset. Only the first time I execute the query, after I restart SqlServer, my program crashes because the rowset...
4
by: Will Pittenger | last post by:
I have a project where the backend is Access. I have learned (slowly) to use OLEDB to access my data. However, to save changes, I need to generate a SQL statement. This seems clunky. I am used...
2
by: InvisibleDuncan | last post by:
I have a Crystal report that, if certain parameters are entered, returns no data. This is fine if I call it from VB6 - it just returns a blank report. However, from VB.Net, it gives me an error...
0
by: Helen | last post by:
Hi, I'm accessing the database in VB .net 2002/crystal 9, but it won't let me open a rowset. The crystal report can open the data, I can see the tables in visual studio, can query the tables in...
0
by: Dipen | last post by:
Hello All, I am using crystal report in my application. Everything is right but i end up with the following error. Failed to open a rowset. Description: An unhandled exception occurred during...
1
by: Shmul | last post by:
When I use DISTINCT like this: SELECT DISTINCT fldA, fldB FROM tblA I get a rowset based on the distinct combination of fldA and fldB while what I'm trying to do is to get a rowset of a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.