Visual Basic 2005 Express Edition:
I am trying to write out a record to an SQL database table:
Private Sub WriteOutRx()
Me.RxBindingSource.Current("PatientLastName") = PatientLastName <---Error on this line
Me.Validate()
Me.RxTableAdapter.Update(Me.RxDataSet.Rx)
End Sub
Below is the error message that I got:
NullReferenceException was Unhandled
Object variable or With block variable not set.
use the 'new' keyword to create an object instance.
I am trying to write out a record to an SQL database table:
Private Sub WriteOutRx()
Me.RxBindingSource.Current("PatientLastName") = PatientLastName <---Error on this line
Me.Validate()
Me.RxTableAdapter.Update(Me.RxDataSet.Rx)
End Sub
Below is the error message that I got:
NullReferenceException was Unhandled
Object variable or With block variable not set.
use the 'new' keyword to create an object instance.