chrisatpsu
Member
- Joined
- Feb 26, 2012
- Messages
- 7
- Programming Experience
- 3-5
I have a query like this...
SELECT DISTINCT Bible, BookTitle
FROM Bible
WHERE (Bible = BibleSelection)
ORDER BY BookTitle
on form, i have code like this...
Dim BibleSelection As String
BibleSelection = cmbBibles.Text
Me.BibleTableAdapter1.Fill(Me.QueryBookTitle.Bible)
I need to know how to write this...
Me.BibleTableAdapter1.Fill(Me.QueryBookTitle.Bible)
to pass along BibleSelection as a parameter.
the general idea is I have a query filling DISTINCT values in a combobox (cmbBibles)
I want to have the next combobox (cmbBooks) fill it's values based from what was selected in cmbBibles
Visual Basic 2010
SELECT DISTINCT Bible, BookTitle
FROM Bible
WHERE (Bible = BibleSelection)
ORDER BY BookTitle
on form, i have code like this...
Dim BibleSelection As String
BibleSelection = cmbBibles.Text
Me.BibleTableAdapter1.Fill(Me.QueryBookTitle.Bible)
I need to know how to write this...
Me.BibleTableAdapter1.Fill(Me.QueryBookTitle.Bible)
to pass along BibleSelection as a parameter.
the general idea is I have a query filling DISTINCT values in a combobox (cmbBibles)
I want to have the next combobox (cmbBooks) fill it's values based from what was selected in cmbBibles
Visual Basic 2010