I am debugging a module that gets data from an Excel spreadsheet and does some updating to rows in the database.
The problem is that there is a column that is called "Ref. Doc. Number" and I get an error because of the dots in the field name. I don't want to have to make the client take them out each time they have to do an update with the spreadsheet.
I've tried using brackets: "[Ref. Doc. Number]" and I get the error that the field does not exist. Is there any way to get .NET to recognize that the " Ref. Doc. Number" string is actually a field name without taking out the dots?
The problem is that there is a column that is called "Ref. Doc. Number" and I get an error because of the dots in the field name. I don't want to have to make the client take them out each time they have to do an update with the spreadsheet.
Code:
RefDocNumber = ds.Tables(0).Rows(i).Item("Ref. Doc. Number") <== this gives me an error.