Wrox Programmer Forums
|
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 3rd, 2012, 08:23 AM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default error in dao recordset code

I've got my code to movenext to next record .but what happens is that if i click once it moves to the next record but then after that it refuses to move to the next record. Does anyone have an idea how I can fix my code
Code:
Dim AccessEngine As New DBEngine

        Dim db As Database = AccessEngine.OpenDatabase(DatabasePath)
        Dim dbs As Microsoft.Office.Interop.Access.Dao.Recordset = db.OpenRecordset("myTable", RecordsetTypeEnum.dbOpenDynaset)

        If Not dbs.EOF Then

            dbs.MoveNext()

            txtName.Text = dbs.Fields("myName").Value
            txtSurname.Text = dbs.Fields("mySurname").Value

        End If





Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone DAO Recordset into ADO Recordset kamrans74 VB How-To 0 March 6th, 2007 11:57 AM
"no current record" error in DAO code Loralee Access 6 October 13th, 2005 12:50 PM
DAO Recordset Problems SteveH Access VBA 1 October 5th, 2005 05:39 PM
dao error code 0xbe5 m002864 Crystal Reports 0 July 11th, 2005 10:02 AM
Convert ADO recordset to DAO recordset andrew_taft Access 1 May 5th, 2004 02:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.