If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Combine several fields to one column
I gave a table that contains 7 fields Doctor1, Doctor 2, thru Doctor7
I would like a query that will combine all the fields from the table and display it as one single colume list. This will then be the source for a list or combo box. In use the user will choose a doctor, and then the clinic name, and address will appear in a test box. Thanks |
#2
|
|||
|
|||
sounds like you have not followed normalized database design.
Without knowing more, it would be hard to tell you how to revise it, but you would almost never have a table with multiple fields with the same name, but a sequence number. This would almost always be a one-to-many relationship. Tell us more about your database and we can tell you more about the normalized design. Rick b "John" j wrote in message ... I gave a table that contains 7 fields Doctor1, Doctor 2, thru Doctor7 I would like a query that will combine all the fields from the table and display it as one single colume list. This will then be the source for a list or combo box. In use the user will choose a doctor, and then the clinic name, and address will appear in a test box. Thanks |
#3
|
|||
|
|||
This would have to be a UNION query.
SELECT Doctor1 FROM YourTable UNION SELECT Doctor2 FROM YourTable UNION ... John wrote: I gave a table that contains 7 fields Doctor1, Doctor 2, thru Doctor7 I would like a query that will combine all the fields from the table and display it as one single colume list. This will then be the source for a list or combo box. In use the user will choose a doctor, and then the clinic name, and address will appear in a test box. Thanks |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel SUMIF formula statisfying two conditions in two columns? | Joe R. | Worksheet Functions | 14 | October 5th, 2004 01:27 PM |
How can I combine data in two separate fields in a table? | Matt Meserve | Running & Setting Up Queries | 4 | September 15th, 2004 08:09 PM |
Need to Sum one column for each row that is part of a group and then filter out dups | kukarooza | Worksheet Functions | 1 | July 8th, 2004 02:30 PM |
Countif with 2 or more data ranges in same column | Doug | Worksheet Functions | 1 | July 4th, 2004 08:57 AM |
Reversing Sign on Column of Data (Positive to Negative) (Negative to Postive) | M Stokes | Worksheet Functions | 1 | April 26th, 2004 04:33 PM |