Dataview.find

  • Thread starter Thread starter Alfredo
  • Start date Start date
A

Alfredo

I guys

I'm trying to find a value in a dataview, using the FIND method.
When the field to be searched is a string field, it works fine, but
with a datetime field, i get an INVALID CAST OPERATION error.

Does this mean that you are not suposed to use dataview.find with a
datetime field?

Thanks

Alfredo
 
Alfredo,

The following works fine:

dv.Find(CType("10/17/1993", Date))

You have to Cast the date string to Date before you use it with Find method.

I hope this helps!

Thanks,
Hussein Abuthuraya
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
 
Back
Top