Guest_imported
New member
- Jan 1, 1970
- 0
Hello All -
I'm rather new so please excuse what may be a simple question, but we all start somewhere.
I'm trying to put together a program in VB that will view and edit a database. The database contains information from my church on what message was spoken when and who delivered the message. The problem is that a message may have been delivered by more than one person, sometimes up to three in fact.
I have seperated the message information in one table and the speaker information in another. I've assigned each speaker a number that should be related to that speaker.
In the message table there are fields for "SpeakerNum", "Speaker2Num", and "Speaker3Num". The problem come in when I'm coming up with an SQL statement that will join all three of the speakers with numbers.
The Data Controls RecordSource property is now, "SELECT OML.[Date], OML.[Notes], OML.[MessageNum], OML.[MessageTitle], SpeakerNameNum.[Speaker] FROM OML INNER JOIN SpeakerNameNum ON SpeakerNameNum.[SpeakerNum] = OML.[SpeakerNum]". This will get me the first speaker, but not the second or third.
Does anyone know of any ways to join one field of a table to THREE fields in another.
Thanks A Ton!!!!
I'm rather new so please excuse what may be a simple question, but we all start somewhere.
I'm trying to put together a program in VB that will view and edit a database. The database contains information from my church on what message was spoken when and who delivered the message. The problem is that a message may have been delivered by more than one person, sometimes up to three in fact.
I have seperated the message information in one table and the speaker information in another. I've assigned each speaker a number that should be related to that speaker.
In the message table there are fields for "SpeakerNum", "Speaker2Num", and "Speaker3Num". The problem come in when I'm coming up with an SQL statement that will join all three of the speakers with numbers.
The Data Controls RecordSource property is now, "SELECT OML.[Date], OML.[Notes], OML.[MessageNum], OML.[MessageTitle], SpeakerNameNum.[Speaker] FROM OML INNER JOIN SpeakerNameNum ON SpeakerNameNum.[SpeakerNum] = OML.[SpeakerNum]". This will get me the first speaker, but not the second or third.
Does anyone know of any ways to join one field of a table to THREE fields in another.
Thanks A Ton!!!!