473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Multiple Items from Multi-Select ListBox into TextBox

Hi,

I'm trying to populate a text box on a form with items from a listbox. I tried your code above but I'm having problems with the command for "FieldInTableToPopulate". I'm not sure what this means.

I have the main form which gets its data from the main table, "Marketing Contacts". I have another table called "tbl_MarketingArea" which I used to create a listbox on the form. Am I doing this right?

I just want the user to be able to multi select items from the form and have them populate in the text box and tie to the record.

Thanks!

** Edit **
Split from Multiple select listbox, concatenate to single field in table.
Sep 29 '11 #1
1 4014
Nevermind, I figured it out. I had to create a text box in the table and then place it on the form. I was using an unbound text box, duh! lol

I am so new to this. I am barely starting to understand how this works. I can't wait until I start getting better at it!

The only problem I'm having now is that when I populate these items, I get the primary key. Bah! What did I get myself into. I'm just the admin asst. lol
Sep 29 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Suresh | last post by:
formName: Name of the form ctrlListBox: Name of the Listbox control function fnRemoveListItem(formName, ctrlListBox) { if (formName == '') var formName = document.forms(0).name obj =...
2
by: Sally | last post by:
I have a simple multiselect listbox with a rowsorce of MemberID, MemberName, SendLetter. SendLetter is a Yes/No field. What is the code to set SendLetter to Yes when the user selects MemberName? I...
2
by: Cassie Pennington | last post by:
I am trying to write various items from a multiselect list box to an SQL statement to update a report, without success. SQL only appears to accept hard-coded data or control values from a form, not...
2
by: Peder Y | last post by:
Anyone knows if there is some kind of property or function that will return the last selected/deselected item/index in a multiselect ListBox? SelectedIndex will point to first index in the...
3
by: ted | last post by:
Hi, I can't figure out how to set multiple items in a ListBox to selected when the listbox is in a User Control. When the ListBox is set in directly into a form I can use the following:...
1
by: Isaac Wang via .NET 247 | last post by:
I am having trouble making preselections for the listboxes in a datagrid. For each row, I have a listbox with selectionmode=multiple, which I bind to a datatable. However, when I used the...
1
by: JNariss | last post by:
Hello, I have created a form called frmS2P with the following: 1 listbox called List11 which holds the contents of a query created off my table called tblRequestActions. The fields which the...
3
by: kaosyeti via AccessMonster.com | last post by:
hey... i have an unbound multiselect listbox on a form that i want to use to populate text boxes on that form. so if a user selects the 3rd item in a list of 20, how can i have that item show up...
7
by: sonia.sardana | last post by:
I try the foll. code--- protected void Button1_Click(object sender, EventArgs e) { int i; for (i = 0; i <= ListBox1.Items.Count - 1; i++) { ...
1
by: buterfly0707 | last post by:
hi.. i want to add selected multiple items form list box to text box(MultiLine) seperated with a comma in each item.I know how to add multiple list box values to another List box. but how can i...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.