p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 7th, 2008, 05:50 AM
Registered User
 
Join Date: Feb 2008
Location: abudhabi, abudhabi, United Arab Emirates.
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.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 13th, 2008, 06:03 AM
Registered User
 
Join Date: Jan 2008
Location: bangalore, karnataka, India.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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



All times are GMT -4. The time now is 04:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc