We help IT Professionals succeed at work.
Get Started

Setting a rowfilter on a dataset table

mgmhicks asked
Last Modified: 2012-05-12
I have a xml file I load into a data set.  One of the fields ends up being a string date value of
"1900-01-01T00:00:00-05:00" {String}
    String: "1900-01-01T00:00:00-05:00"

This is the value it uses for a null value.  Anyway I need to create a rowfilter to see if the first 4 characters are "1900"

ds.tables(0).defaultview.rowfilter = "?????"

Normally I would go "Completedby = '" & ds.tables(0).rows(i).item(2).tostring" and I would be good to go, but what I need to do is something like "left(completedby,4)='1900', but when I do that it doesnt seem to get column information correct.  Any ideas, thanks

Watch Question
Most Valuable Expert 2012
Top Expert 2014
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE