"Rowset not bookmarkable"/"Recordset not updatable"

Posted on 2003-03-03
Medium Priority
Last Modified: 2013-12-26
I am using an adodc DataGrid to display an adodb recordset, which is its datasource.

Using RowColChange I am displaying records from the recordset in masked edit boxes for editing.

However, I either get a "rowset not bookmarkable" (on transGrid. recordsource = rec) or a "recordset not updatable" (on rec.AddNew) depending on the connection parameters i use.

Does anyone know either a suitable combination of parameters, or a better way of coding in order to both get an editable recordset and display the recordset in a datagrid? code below.



Private Sub Form_Load()
    SQL = "SELECT * FROM [action] WHERE user_name = '" & Logon_User_Name & "' ORDER BY start_date_time DESC"
    rec.Open SQL, conTimeADO, adOpenDynamic 'if i use adLockOptimistic here i get the bookmarkable error, if i don't i get the updtate error.
    Set transGrid.DataSource = rec
End Sub

Private Sub transGrid_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    mebDate.Text = rec.Fields(1)
    mebTime.Text = rec.Fields(1)
    mebCCentre.Text = rec.Fields(2)
    mebTask.Text = rec.Fields(3)  
End Sub
Private Sub cmdInsert_Click()
End Sub
Question by:isupsn
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 70

Accepted Solution

Éric Moreau earned 400 total points
ID: 8056624
rec.cursorlocation = aduseclient

Author Comment

ID: 8056871
Thanks for this, worked like a charm!  I might learn how to unravel the mysteries of vb one of these days ... have a good day.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question