We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim dbcon As New OleDb.OleDbConnection Dim dbcomm As New OleDb.OleDbCommand Dim dbreader As New OleDb.OleDbDataReader Dim dbProvider As String Dim dblookupString As String dbProvider = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\database.accdb;Persist Security Info=False;" dbcon.ConnectionString = dbProvider dbcon.Open() dblookupString = "Select * from tblinventory where ItemBarcode = " & textAddItem.Text dbcomm.Connection = dbcon dbcomm.CommandText = dblookupString dbreader = dbcomm.ExecuteReader() While (dbreader.Read()) MsgBox(dbreader("ItemName")) 'Show data in a Message Box End While dbcon.Close()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.