Dear All
I have problem with code as below:
I need to set Display Member = "bPNR" and Value Member="bID" so how can I add it.
Please help
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
Please help
Comment