Hi All
I am trying to populate a datagrid where the value in a column from an access table matches the text in one of my combo boxes, however i get the following error
Syntax error (missing operator) in query expression 'A/C REF ='1843''.
Code is below, can anyone assist and point out what i am doing wrong?
Thanks
dgvProcess.DataSource = clientviewThis is my first attempt at using datagrids so be gentle if there is an obvious mistake in their!
I am trying to populate a datagrid where the value in a column from an access table matches the text in one of my combo boxes, however i get the following error
Syntax error (missing operator) in query expression 'A/C REF ='1843''.
Code is below, can anyone assist and point out what i am doing wrong?
Thanks
VB.NET:
Dim dbAdapter As OleDb.OleDbDataAdapter
Dim ConsignmentDataset As New DataSet()
Dim strConsignmentConnection As String
strConsignmentConnection = "SELECT * FROM CONSIGNMENTSTOCK WHERE A/C REF ='" & cmbProcessACRef.Text & "'"
dbAdapter = New OleDb.OleDbDataAdapter(strConsignmentConnection, oConsignmentStock)
dbAdapter.Fill(ConsignmentDataset, "CONSIGNMENTSTOCK")
Dim clientview As New DataView(ConsignmentDataset.Tables("CONSIGNMENTSTOCK"))