B
Bill Struve
You may want to do this, since the first single quote is missing in your
e-mail:
string sqlCounty = "'";
For (int i=0, i<cblCounties.Items.Count)
{
sqlCounty += cblCounties.Items.Value.Trim() + "', '";
}
sqlCounty = sqlCounty.Substring(0,sqlCounty.Length - 3);
I don't know what your stored procedure is, but you may also consider adding
the "(" and ")" here instead of in the stored procedrue:
e.g. Field in @sqlCounty
Indstesd of: Field in (@sqlCounty)
Then the first line would be:
string sqlCounty = "('";
and you would have to add a line at the end:
sqlCounty += ")";
Bill - (e-mail address removed)
e-mail:
string sqlCounty = "'";
For (int i=0, i<cblCounties.Items.Count)
{
sqlCounty += cblCounties.Items.Value.Trim() + "', '";
}
sqlCounty = sqlCounty.Substring(0,sqlCounty.Length - 3);
I don't know what your stored procedure is, but you may also consider adding
the "(" and ")" here instead of in the stored procedrue:
e.g. Field in @sqlCounty
Indstesd of: Field in (@sqlCounty)
Then the first line would be:
string sqlCounty = "('";
and you would have to add a line at the end:
sqlCounty += ")";
Bill - (e-mail address removed)