A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combine several fields to one column



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2004, 04:54 PM
John
external usenet poster
 
Posts: n/a
Default 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  
Old November 4th, 2004, 05:06 PM
Rick B
external usenet poster
 
Posts: n/a
Default

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  
Old November 6th, 2004, 01:08 PM
John Spencer (MVP)
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 08:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.