Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

DataTable.Select question

$
0
0
For the FilterExpression on the DataTable.Select method can I have more than one filter. Like this:
Code:


                    String expression = "[ProductID] = '" + PMTDProductID + "' && [CustNo] = '" + APMFCustNo + "'";

                    DataRow[] results = dtCust.Select(expression);


Currently this is throwing this error "Syntax error: Missing operand before '&' operator.". What am I doing incorrectly?

Thanks,

Viewing all articles
Browse latest Browse all 42225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>