Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 November 3rd, 2003, 11:22 AM
Authorized User
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default add multiple list to textbox

I have a text field named txtEquipment on a bound form . On the form I have an unbound listbox, RowSourceType set to ValueList and contains a list of equipment.

I want to select an item from the list box, bouble click to add it to txtEquipment. I am able to do that. Now, I want to select another item in the listbox, double click the listbox and add the next equipment in a new line in txtEquipment without replacing the previous entry.

How can I do this? Thanks for any suggestion
Old November 3rd, 2003, 01:10 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts

In your double-click code use something like the following:
If Nz(me.txtEquipment,"")="" then
   me.txtEquipment=me.txtEquipment & vbcrlf & me.listbox
End If

Brian Skelton
Braxis Computer Services Ltd.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add a variable to the name of a textbox? Lucy Classic ASP Basics 4 September 15th, 2009 06:48 PM
Add textbox in cs file khorshid_sh ASP.NET 1.0 and 1.1 Basics 2 April 30th, 2008 02:37 PM
Data from Dropdown List to TextBox caterpillar General .NET 1 July 10th, 2006 06:05 AM
How to write value of checked list in textbox gilgalbiblewheel Classic ASP Databases 2 August 10th, 2005 06:08 PM

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