M
marti
Probably a simple explaination for this, but I can't find it anywhere.
Using asp.net 2003 on windows xp.
I have a dataview with e-mail addresses and individual numbers. The
individual numbers (field IndividualNum) are in the form of
year-7DigitHex (05-0000023).
The following code line generates the above error:
dv.RowFilter = "IndividualNum = '05-0000023'"
As does this:
Dim tmpStr as String
tmpStr = "IndividualNum = '05-0000023'"
dv.RowFilter = tmpStr
It does work with other filters, such as:
dv.RowFilter = "IndividualNum = '7097'"
dv.RowFilter = "IndividualNum = 'Frank'"
It seems like the dash is telling it to subtract 0000023 from 05,
eventhough it's enclosed in single quotes. Is this what the problem is?
If so, is there a way around it? Thanks!
-Jeff
Using asp.net 2003 on windows xp.
I have a dataview with e-mail addresses and individual numbers. The
individual numbers (field IndividualNum) are in the form of
year-7DigitHex (05-0000023).
The following code line generates the above error:
dv.RowFilter = "IndividualNum = '05-0000023'"
As does this:
Dim tmpStr as String
tmpStr = "IndividualNum = '05-0000023'"
dv.RowFilter = tmpStr
It does work with other filters, such as:
dv.RowFilter = "IndividualNum = '7097'"
dv.RowFilter = "IndividualNum = 'Frank'"
It seems like the dash is telling it to subtract 0000023 from 05,
eventhough it's enclosed in single quotes. Is this what the problem is?
If so, is there a way around it? Thanks!
-Jeff