Guest_imported
New member
- Jan 1, 1970
- 0
Hi -
I'm working on a program that pulls data from an Access program. It's a database of messages that were spoken at my church, and not every message has only one speaker. Some, for example, have up to three speakers. I've assigned all speakers a number (kept in a seperate table) in order to only keep the actual names in one place. So in my main table I have a field for SpeakerNum, Speaker2Num, and Speaker3Num.
What the statement needs to do is join the names to, not one field in the main table, but THREE.
I can get it to work with ONE name, where I lose it is coming up with the second and third names.
This is the SQL statement that I'm using now, and like I said it works with one name;
SELECT OML.[Date], OML.[MessageNum], OML.[MessageTitle], SpeakerNameNum.[Speaker] FROM OML INNER JOIN SpeakerNameNum ON SpeakerNameNum.[SpeakerNum] = OML.[SpeakerNum], OML.[Speaker2Num]
Any help would just make my entire week!...Thanks in advance
I'm working on a program that pulls data from an Access program. It's a database of messages that were spoken at my church, and not every message has only one speaker. Some, for example, have up to three speakers. I've assigned all speakers a number (kept in a seperate table) in order to only keep the actual names in one place. So in my main table I have a field for SpeakerNum, Speaker2Num, and Speaker3Num.
What the statement needs to do is join the names to, not one field in the main table, but THREE.
I can get it to work with ONE name, where I lose it is coming up with the second and third names.
This is the SQL statement that I'm using now, and like I said it works with one name;
SELECT OML.[Date], OML.[MessageNum], OML.[MessageTitle], SpeakerNameNum.[Speaker] FROM OML INNER JOIN SpeakerNameNum ON SpeakerNameNum.[SpeakerNum] = OML.[SpeakerNum], OML.[Speaker2Num]
Any help would just make my entire week!...Thanks in advance