MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Try Dim con As New OleDb.OleDbConnection Dim ds As New System.Data.DataSet Dim da As New OleDb.OleDbDataAdapter Dim P As Integer dbpath = GetDBPath() con.ConnectionString = "Provider=Microsoft.JET.OLEDB.4.0;Data Source=" & dbpath con.Open() sql3 = "SELECT LineNo, Description, FCurrUnitPrice, Fees, Disbursements, Tax FROM Invoice_Detail WHERE Inv_no = '" & inv_no & "'" da3 = New OleDb.OleDbDataAdapter(sql3, con) da3.Fill(ds3, "Invoice_Detail") con.Close() P = ds3.Tables("Invoice_Detail").Rows.Count If P >= 1 Then 'frmInvoicing.DataGridView1.ReadOnly = True frmInvoicing.DataGridView1.DataSource = ds3.Tables("Invoice_Detail") frmInvoicing.DataGridView1.Columns("LineNo").Visible = False PopulateDatagrid = True Else PopulateDatagrid = False End If Catch ex As Exception MessageBox.Show("Error trying to Populate DG" & vbCrLf & vbLf & ex.Message.ToString()) End Try
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.