Me.ATDtxtbox.Text = Me.DataGrid.CurrentRow.Cells("CAUSE").Value
I got this code to get the value from column Cause to fill my text box, it is find with rows that have data, but if empty row it give me error in "convertion from type DBNull to type String is not valid". Is there a way to tell that if row is empty then leave blank and if there is data, get the data to txtbox? Thank You.
I got this code to get the value from column Cause to fill my text box, it is find with rows that have data, but if empty row it give me error in "convertion from type DBNull to type String is not valid". Is there a way to tell that if row is empty then leave blank and if there is data, get the data to txtbox? Thank You.