Wrox Programmer Forums
|
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 May 9th, 2004, 11:58 PM
Authorized User
 
Join Date: Apr 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listbox to textbox

Hi All

I've was wondering if it is possible to set value in an unbound textbox from double clicking in a listbox.
The listbox has 6 columns and I want to set value in 3 textboxes from 3 of the columns in the listbox.

Any help is highly appreciated.

Thanks / Fred

 
Old May 10th, 2004, 07:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Set the Control source for the textboxes to be:
Code:
=[YourListBox].Column(2)
etc





I am a loud man with a very large hat. This means I am in charge
 
Old May 10th, 2004, 10:37 PM
Authorized User
 
Join Date: Apr 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To my fellow Australian,

Thank you so much, I had a feeling it would be something simple like that.
I tried something similar, but my shortcomings in VBA unabled me to add the brackets and the dot.

Cheers / Fred








Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I set TextBox value from asp.net Listbox, vishnu108mishra ASP.NET 2.0 Professional 1 March 10th, 2008 06:11 AM
multiple Listbox values in another listbox terryv Excel VBA 0 June 27th, 2007 07:01 AM
listbox/Textbox/sql Rudner VB How-To 0 March 9th, 2005 02:44 AM
Listbox/textbox johnjohn Classic ASP Basics 4 December 11th, 2004 12:14 AM
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.