Reputation: 5631
I want to select rows from DataTable. Select criteria includes anding and the columns name have a space b/w them as you can see below:
int distributionLineIdex = import.VendorInvoiceLineDetailTable.Select
("Number='AMEX0311_00011' and Line number='001'").Count();
I am getting the following exception :
Syntax error: Missing operand after 'number' operator.
What am I missing here ?
Upvotes: 9
Views: 17551
Reputation: 31
This is also true when the field name in DataTable is numeric. In that case use:
[2] = 7878 AND [6] = 'eee'
Upvotes: 3