OK so I am now getting into changing my app so I use designer created data access objects, dataset, tableadapter etc.
I am plodding along nicely but have come across this error which I dont understand why it happens.
{"Input string was not in a correct format."}
Now the previous "messy" way I was coding actually worked the first time I coded it and I did not think anything more about it.
Here it is:
glb_dtTransactionDesc started life as:
Now here is the new way I am doing it which does not show any syntax error but does crash with the previously stated error above:
Note T is the same as txtTextbox......renamed as it is a through away object
I am plodding along nicely but have come across this error which I dont understand why it happens.
{"Input string was not in a correct format."}
Now the previous "messy" way I was coding actually worked the first time I coded it and I did not think anything more about it.
Here it is:
VB.NET:
If Not glb_dtTransactionDesc.Rows.Find(txtTextBox.Text) Is Nothing Then
glb_dtTransactionDesc started life as:
VB.NET:
Public glb_dtTransactionDesc As New DataTable
Now here is the new way I am doing it which does not show any syntax error but does crash with the previously stated error above:
VB.NET:
If Not Me.MyFinanceDataSet1.TransactionDescriptions.Rows.Find(T.Text) Is Nothing Then
Note T is the same as txtTextbox......renamed as it is a through away object