B
Bo Diddly
This is what I've done so far:
I have a DataBase with:
tblBook
BookID... key
Book... All the book titles of the Bible
tblChapter
ChapterID... key
Chapter... chapter numbers (1 - 150)
tblVerse
VerseID... key
Verse... verse number (1 - 100)
tblVerseText
ID... key
BookID
ChapterID
VerseID
VerseText... Each verse from the Bible, each in its own record
Created a DataAdapter for each table, (when I run the SQL statements within
the configuration wizard, they do what I want them to do):
daBook... SELECT Book,BookID FROM tblBook ORDER BY BookID
daChapter... SELECT DISTINCT tblChapter.Chapter, tblChapter.ChapterID,
tblVerseText.ChapterID AS Expr1, tblVerseText.BookID FROM tblChapter INNER
JOIN tblVerseText ON tblChapter.ChapterID = tblVerseText.ChapterID WHERE
(tblVerseText.BookID = ?) ORDER BY tblChapter.ChapterID
daVerse... SELECT DISTINCT tblVerse.Verse, tblVerse.VerseID,
tblVerseText.ChapterID, tblVerseText.VerseID AS Expr1 FROM tblVerse INNER
JOIN tblVerseText ON tblVerse.VerseID = tblVerseText.VerseID WHERE
(tblVerseText.ChapterID = ?) ORDER BY tblVerse.VerseID
daText... SELECT VerseText, ID, VerseID FROM tblVerseText WHERE (VerseID
= ?) ORDER BY ID
Created a DataView for each DataSet
dvBook
dvChapter
dvVerse
dvText
The Controls on the form are bound to the DataViews:
cmbBook > dvBook
cmbChapter > dvChapter
cmbVerse > dvVerse
lblText > dvText
I need the item that is selected in each ComboBox to filter the choices in
the subsequent ComboBoxes.
How do I write the statement in the SelectedItemChanged event to take the
value displayed and pass it's corresponding key to filter the next ComboBox?
Thanks in advance,
Gary
I have a DataBase with:
tblBook
BookID... key
Book... All the book titles of the Bible
tblChapter
ChapterID... key
Chapter... chapter numbers (1 - 150)
tblVerse
VerseID... key
Verse... verse number (1 - 100)
tblVerseText
ID... key
BookID
ChapterID
VerseID
VerseText... Each verse from the Bible, each in its own record
Created a DataAdapter for each table, (when I run the SQL statements within
the configuration wizard, they do what I want them to do):
daBook... SELECT Book,BookID FROM tblBook ORDER BY BookID
daChapter... SELECT DISTINCT tblChapter.Chapter, tblChapter.ChapterID,
tblVerseText.ChapterID AS Expr1, tblVerseText.BookID FROM tblChapter INNER
JOIN tblVerseText ON tblChapter.ChapterID = tblVerseText.ChapterID WHERE
(tblVerseText.BookID = ?) ORDER BY tblChapter.ChapterID
daVerse... SELECT DISTINCT tblVerse.Verse, tblVerse.VerseID,
tblVerseText.ChapterID, tblVerseText.VerseID AS Expr1 FROM tblVerse INNER
JOIN tblVerseText ON tblVerse.VerseID = tblVerseText.VerseID WHERE
(tblVerseText.ChapterID = ?) ORDER BY tblVerse.VerseID
daText... SELECT VerseText, ID, VerseID FROM tblVerseText WHERE (VerseID
= ?) ORDER BY ID
Created a DataView for each DataSet
dvBook
dvChapter
dvVerse
dvText
The Controls on the form are bound to the DataViews:
cmbBook > dvBook
cmbChapter > dvChapter
cmbVerse > dvVerse
lblText > dvText
I need the item that is selected in each ComboBox to filter the choices in
the subsequent ComboBoxes.
How do I write the statement in the SelectedItemChanged event to take the
value displayed and pass it's corresponding key to filter the next ComboBox?
Thanks in advance,
Gary