Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
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.



Reply With Quote
  #2 (permalink)  
Old March 13th, 2008, 05: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
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.