Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 September 16th, 2004, 08:30 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default From listbox to 5 textboxes

Hi there,

I have 5 txtboxes that get their data from an acces database, using ado to connect. The 5 boxes refer to 5 different fields in the same table. (Table = adresses , Fields = surname, lastname, zipcode...and so on)

And I allso have a listbox with all lastnames in it.
(Table = adresses , Field = lastname)

My question is - how do I populate the 5 txtboxes with the data that belongs to the record set i choose in the listbox ?

Cheers
/ThomasF
 
Old September 23rd, 2004, 05:39 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Since you are populating 5 field values from the same table with criteria that will result to multiple recordset/result. Would you
like the last record of the last name found from your list box?
John






Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Textboxes RubyRue ASP.NET 1.0 and 1.1 Basics 1 February 18th, 2008 11:13 AM
multiple Listbox values in another listbox terryv Excel VBA 0 June 27th, 2007 07:01 AM
Two TextBoxes [email protected] ASP.NET 1.0 and 1.1 Basics 5 April 1st, 2006 06:32 AM
Creating Textboxes jfleming VB How-To 7 July 14th, 2004 11:35 PM
I'm back :) Listbox var from listbox MichaelTJ .NET Web Services 2 October 21st, 2003 07:06 PM





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