Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 December 17th, 2003, 03:13 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Record selected goes to new form

I have a look up and after I select a record from the look up box I have it open a form that includes a the records queried. I want the form to open up with the record I selected from the look up in the form.
Let me give an example I do a look up for everything scheduled for a certain date. I found 15 records shown in the look up box and I select the 7th record on the click property I have it set to open a new form which has all the 15 records found. I want this form to remember and to open with the 7th record that I selected from the look up box.

Thanks,


 
Old December 23rd, 2003, 08:29 AM
Authorized User
 
Join Date: Jun 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Presumably you are passing the complete recordset to the new form. Use the Index property of the listbox as a pointer to the record in the recordset by setting the recordset's absoluteposition property






Similar Threads
Thread Thread Starter Forum Replies Last Post
passing unique record from form to form Baconant Beginning VB 6 1 January 2nd, 2008 06:20 PM
unable to get selected value form dropdownlist swati_joshi ASP.NET 1.0 and 1.1 Basics 3 March 31st, 2006 12:35 PM
Open a table selected in a html form SKE Access ASP 3 May 19th, 2005 01:40 AM
Open a table selected in a html form SKE Classic ASP Databases 0 May 17th, 2005 08:59 AM





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