473,385 Members | 1,930 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,385 software developers and data experts.

Concatenate records into single query

Hopefully this time someone can help me:
Table1: Employee (Employee Name & Team)

Form1: based on Table1 (for people to edit name and team; total 4
teams)

Form2: ComboBox1 with list of team to choose from. If team1 is chosen,
only team1 members are listed in ComboBox1, if team2 is chosen, only
team2 people are listed. (i.e. the source for ComboBox1 is based on a
concatenated result from Form1) e.g. Team1: Name1, Name2, Name3,
Name4; Team2: Name5, Name6, Name7... this becomes the drop list list
of this ComboBox!)

I understand how you can use Value List (however, I don't want to
programatically change the value list everytime an user has been added
or deleted.) I want it to base on a Concatenated query.

Hope you understand what I am after now. Thanks in advance.

Sincerely,
Perry

Jul 15 '06 #1
4 1431
pe******@yahoo.com wrote:
Hopefully this time someone can help me:
Table1: Employee (Employee Name & Team)

Form1: based on Table1 (for people to edit name and team; total 4
teams)

Form2: ComboBox1 with list of team to choose from. If team1 is chosen,
only team1 members are listed in ComboBox1, if team2 is chosen, only
team2 people are listed. (i.e. the source for ComboBox1 is based on a
concatenated result from Form1) e.g. Team1: Name1, Name2, Name3,
Name4; Team2: Name5, Name6, Name7... this becomes the drop list list
of this ComboBox!)

I understand how you can use Value List (however, I don't want to
programatically change the value list everytime an user has been added
or deleted.) I want it to base on a Concatenated query.

Hope you understand what I am after now. Thanks in advance.
Sorry, makes little sense to me. How can a choice in ComboBox1 limit what team
members are listed in ComboBox1 (the same ComboBox)?

Did you mean to say that there are TWO ComboBoxes on Form2 and that you want the
second ComboBox to list the team members from the team selected in ComboBox1?
If not you'll have to try again with your explanation.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Jul 15 '06 #2
On 15 Jul 2006 15:17:15 -0700, pe******@yahoo.com wrote:
>Hopefully this time someone can help me:
Table1: Employee (Employee Name & Team)

Form1: based on Table1 (for people to edit name and team; total 4
teams)

Form2: ComboBox1 with list of team to choose from. If team1 is chosen,
only team1 members are listed in ComboBox1,
*****I assume you mean combobox2 here

if team2 is chosen, only
>team2 people are listed. (i.e. the source for ComboBox1 is based on a
concatenated result from Form1) e.g. Team1: Name1, Name2, Name3,
Name4; Team2: Name5, Name6, Name7... this becomes the drop list list
of this ComboBox!)

I understand how you can use Value List (however, I don't want to
programatically change the value list everytime an user has been added
or deleted.) I want it to base on a Concatenated query.

Hope you understand what I am after now. Thanks in advance.

Sincerely,
Perry
You wouldn't use a value list in the combo box, but a select query which gives just the members of
the selected team. eg

1. The rowsource of combobox2 is something like

select [Employee Name] from Table1 where Team = combobox1
2. In the afterupdate event of combobox1 you have

combobox2.requery
Jul 15 '06 #3
you mean something like this?

http://www.mvps.org/access/forms/frm0028.htm

Jul 16 '06 #4
For all that replied. I want to thank everyone of you. I found
something in the mvps.org that has a module and then use a query to
call for the code. It works beautifully. Thanks again.
pi********@hotmail.com wrote:
you mean something like this?

http://www.mvps.org/access/forms/frm0028.htm
Jul 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Big Time | last post by:
I've got a crosstab query that counts the number of values in one of my tables. However, rather than giving me the number of instances of each record, what I would like is for each value to...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
8
by: Dixie | last post by:
I have the results of a query to send to a mailmerge with Word 2000. The query produces say 6 to 8 records, where only 1 of the fields is different from record to record. I can only have one...
4
by: jpr | last post by:
hello, I have a form with four fields: Fname, Lname, DOB and txtresult. Examples: JOHN, SMITH, 03/19/2006. The first three are bound to a table while the txtresult is unbound. I would...
2
by: perryche | last post by:
Bear with me since I know very limited knowledge about VBA and Module... I have a table Employees, where I build a query out of based on TeamID=1, Therefore, only listed those employees that...
6
by: drazenj | last post by:
Hi , sorry for my english ... I work in high school as a teacher and try to make CLASS SCHEDULE (TIME schedule) for my collegues and for students . My problem is that I don't know how to...
10
by: Aaron Hoffman | last post by:
Hello, I'm hoping someone might be able to offer some guidance to my problem. I have one query in MS Access which consists of 2 tables joined by a SEQUENCE_ID. By joining the two tables I am...
6
by: mark83anthony | last post by:
How do I concatenate strings from a column into a single row? Whats the logic to create the function in DB2. Given is below. Color ------ red orange
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.