Please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kosal
    New Member
    • Feb 2007
    • 68

    Please help

    Dear All

    I have problem with code as below:
    Code:
     
    strSQL = "SELECT * FROM tblBooking WHERE (bIssureDate BETWEEN '" & FromDate.ToString("dd MMM yyyy") & "' AND '" & ToDate.ToString("dd MMM yyyy") & "')AND bStatus='" & cboStatus.Text & "'"
    Try
    DBCon.Open()
    cboPNR.Focus()
    Dim DBcom As New Odbc.OdbcCommand(strSQL, DBCon)
    Dim objreader As Odbc.OdbcDataReader = DBcom.ExecuteReader()
    Do While objreader.Read()
    cboPNR.Items.Add(objreader("bPNR"))
    Loop
    Catch ex As Exception
    MsgBox(ex.Message)
    Finally
    DBCon.Close()
    End Try
    I need to set Display Member = "bPNR" and Value Member="bID" so how can I add it.

    Please help
    Last edited by DrBunchman; Jul 22 '08, 07:21 AM. Reason: Added [Code] Tags - Please use the '#' button
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Please don't double post.

    Comment

    • Kosal
      New Member
      • Feb 2007
      • 68

      #3
      Sorry for double post

      Comment

      Working...