Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using VBA and ADO to retrieve a recordset from SQL Server - then
filtering the recordset to get the target records. Some of my records have a numeric prefix - and some have an alpha prefix. In my source query I use "partNo LIKE '[A-Z]%'" to extract the recordset. But when I try to use the same logic in the recordset filter, it fails to find the records. I've tested the result by filtering for the exact prefix ("partNo LIKE 'WW6%'") and it works, so I know the records are there. But I need a more general way of defining the filter Here's the filter criteria that fails. It returns NO records - when records like WW65-ABCD exist. Can someone point me to another solution? rsAddAllRaw.Filter = "partNo LIKE '[A-Z]%'" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I sort alpha neumeric fields that have an alpha suffix? | Excel Worksheet Functions | |||
Please help... Deadline (ADO recordset.filter) | Excel Programming | |||
ADO Recordset.Filter in Excel 2002 | Excel Programming | |||
The colums changed from alpha to numeric how do you make it alpha | Excel Discussion (Misc queries) | |||
Recordset Filter by Array | Excel Programming |