Hello folks i have this question:

if i use dataset to fill my combobox by SQLStatment and i need to fill 2 seperate combos to i need to datasets?

VB Code:
  1. Dim dsPhoneArea As New DataSet
  2.         Dim odaPhoneArea As OleDb.OleDbDataAdapter
  3.         Dim strSql As String = "Select Area FROM tblPhoneAreas where ID = '00'"
  4.         Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= db.mdb"
  5.  
  6.         Try
  7.             Me.odcFirstContact.ConnectionString = strConn
  8.             '   MsgBox("tried")
  9.              
  10.         Catch eConnection As System.Exception
  11.             MessageBox.Show(eConnection.Message + " Please contact SQVision team for technical support.", "Database Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
  12.         End Try
  13.         '[Change dbconnection to application startup path/]
  14.  
  15.         '[Load phone areas into combobox]
  16.         Try
  17.             odaPhoneArea = New OleDb.OleDbDataAdapter(strSql, strConn)
  18.             odaPhoneArea.Fill(dsPhoneArea, "tblPhoneAreas")
  19.             cmbPhoneArea.DataSource = dsPhoneArea.Tables("tblPhoneAreas")
  20.             cmbPhoneArea.DisplayMember = "Area"
  21.             dsPhoneArea.Clear()
  22.             strSql = "Select Area FROM tblPhoneAreas where ID = '01'"
  23.  
  24.             odaPhoneArea = New OleDb.OleDbDataAdapter(strSql, strConn)
  25.  
  26.             odaPhoneArea.Fill(dsPhoneArea, "Area")
  27.             cmbCellArea.DataSource = dsPhoneArea.Tables(0)
  28.             cmbCellArea.DisplayMember = "Area"
  29. end try