Wrox Programmer Forums
|
BOOK: Access 2003 VBA Programmer's Reference
This is the forum to discuss the Wrox book Access 2003 VBA Programmer's Reference by Patricia Cardoza, Teresa Hennig, Graham Seach, Armen Stein; ISBN: 9780764559037
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2003 VBA Programmer's Reference 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 February 7th, 2008, 05:50 AM
Registered User
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with recordset

when i run the code below i get all the number of records lets say 15 but i get all of them filled with the last record fields 15 times repeated!

the code:

Set rs6 = db6.OpenRecordset("select * FROM todolist where donethat ='" & thevar2 & "'", dbOpenDynaset)

thenum1 = rs5.Fields("thenum")

If thenum1 = 0 Then

rs6.MoveFirst
Do While rs6.EOF = False

Me.JobsID.Value = rs6.Fields("jobsid")
Me.Description.Value = rs6.Fields("description")
Me.POPUPMEMO.Value = rs6.Fields("POPUPMEMO")
Me.DateAdded.Value = rs6.Fields("DateAdded")
Me.DoneThat.Value = rs6.Fields("DoneThat")

rs6.MoveNext

Loop

thanks.



 
Old March 13th, 2008, 05:03 AM
Registered User
 
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Raajagopal.v Send a message via MSN to Raajagopal.v Send a message via Yahoo to Raajagopal.v
Default

hi try with this , hope it will work

rs6.MoveFirst

Do While not rs6.EOF

Me.JobsID.Value = rs6.Fields("jobsid")
Me.Description.Value = rs6.Fields("description")
Me.POPUPMEMO.Value = rs6.Fields("POPUPMEMO")
Me.DateAdded.Value = rs6.Fields("DateAdded")
Me.DoneThat.Value = rs6.Fields("DoneThat")

rs6.MoveNext

regards

Raajagopal.V



at your service
-v.raajagopal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset Problem hugoscp Classic ASP Professional 0 July 10th, 2007 05:59 AM
recordset problem jdsflash ASP.NET 1.0 and 1.1 Basics 1 May 16th, 2006 11:49 AM
Problem In Recordset zaeem Classic ASP Databases 2 October 22nd, 2003 01:34 AM
Problem with recordset am_po_28 Pro VB 6 1 August 25th, 2003 10:17 AM





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