Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 October 12th, 2004, 11:58 PM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to display recordset in unbound form

I have to display disconnected recordset in the form. But I can't make it.
1. I tried use Me.recordset = rs. but it have error after disconnected connection. It works fine before disconnect
2. I test the recordset, it contains all data, i try to use unbound form, but it can only display last record. it always over write previous record.

Does anybody know how to display it?
Thanks a lot for the help


Do Until Rs.EOF
frm.Fund = Rs.Fields(0).Value
frm.Deal = Rs.Fields(1).Value
frm.[Deal Name] = Rs.Fields(2).Value
MsgBox "recode is: " & Rs.Fields(0).Value & ":" & Rs.Fields(1).Value & ":" _
& Rs.Fields(2).Value

Rs.MoveNext
Loop





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating an unbound form from a table Luis Access VBA 8 November 21st, 2008 08:37 AM
Posting the value of an unbound form field into a ebburks Access 8 May 27th, 2006 04:38 PM
Populate unbound form with recordset pacg Access VBA 2 September 26th, 2005 06:06 PM
unbound field in a form zanza67 BOOK: Access 2003 VBA Programmer's Reference 0 September 3rd, 2005 01:46 PM
Unbound Fields on a continuous form phil.t Access 0 October 5th, 2004 07:44 PM





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