473,320 Members | 1,817 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.

Need report from Listbox with muliple values by each item selected

I have a form that tracks individuals assigned to a task. I select the individuals from a list box that is multi-select. I need to run a report that shows how many times a person has been assigned to a task to work. Any suggestions?
Jan 9 '15 #1
3 1021
Seth Schrock
2,965 Expert 2GB
And you want your report to include just the people that you have selected in the listbox? If this is the case, then you would build your query to include the fields that you want, and then have your WHERE clause use the IN keyword to match your individuals primary key field to the list of individuals selected. I believe that the only way to create this list is to use VBA to loop through the ItemsSelected property of the list box. See MSDN ListBox.ItemsSelected Property to see how.
Jan 9 '15 #2
Seth, thanks for the reply. I have them populating a report but would like them separated out so I can count how many times an individual worked to ensure the work load is spread evenly if that makes sense. I will give your suggestion a try to see if that will work.

Chad
Jan 9 '15 #3
Seth Schrock
2,965 Expert 2GB
Then group the results by the individual and you can get counts for each individual on the report.
Jan 9 '15 #4

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

Similar topics

3
by: Mike | last post by:
I have a mulitpage form that I do not record the information into a dbase until the end. I need to pass the field values form on form to the next. I have the code for automatically generating...
5
by: hiroshi ochi | last post by:
Hello, Using MSIE 6.0 and above, with javascript is it possible to display an individual tooltip for each item in a listbox? I need this functionality to show the listitems that are longer...
0
by: Steve Teeples | last post by:
I have a sorted listbox. When just one item is in the collection the item will not appear in my displayed list. If I remove the sort option then the item is displayed correctly. If I have...
1
by: Rudy Ko | last post by:
Hi, I seem unable to set the selected item in a DropDownList by using the following code, it always return the toppest (index 0) item, no matter what i selected. list.DataSource =...
6
by: Niggy | last post by:
Hi there, I would like to display the values of the index as chosen by the user in a listbox. These values would be as per the datavaluefield. On testing I get a value of -1: Private Sub...
5
by: Gerry | last post by:
I need to populate a drop-down list box with names from a table (via SQL Stored Proc). Each name has a unique ID associated with them e.g. NameID 1 Name "My Name" The problem is how can I...
14
by: Drew | last post by:
I need to iterate through a submitted form, inserting data on each pass. In the past, I have always used form elements that were named with numbers at the end, like this, name1 relationship1...
1
by: dev.amit | last post by:
Hello friends Can anyone tell me how to deselect the item selected in the list box If Me!lb_test_property.ItemsSelected.Count > 0 Then For Each varItem In Me!lb_test_property.ItemsSelected...
1
by: Priya | last post by:
I have to display a checboxlist with someitems when each item in a listbox is selected. I have a listbox with a list of categories and when i click each category from the listbox, the checkbox list...
15
by: BinaryGirl23 | last post by:
Hello, I'm sure this is such a simple question I didn't even want to bother posting but for the life of me I just can't get it to work : ( I have a button that toggles "Select All" and "Select...
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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.