LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Excluding numeric values in Query Filter

for non-numeric string you want anything that doesn't start with a digit
which is this

^[0-9]*

where the charat is to excelue anything that starts with 0 to 9 folowed by
anything

"Staten42" wrote:

I apologize for not being more clear. I would prefer not to modify the SQL
manually, as I am not very well versed in SQL, and was hoping I might be able
to do it via the Wizard.....

"Joel" wrote:

Why wouldn't uyou modifiy the SQL? I'm not sure if you understand my
response. The SQL is part of the Command text of the query and is the method
you use to filter data.


You can open the data as a recordset and read the data one record a time.
But again Why??????? If I knew why you don't want to use an SQL then maybe I
can give a better answer.


"Staten42" wrote:

Is there a way of doing outside of altering the SQL statement?

"Joel" wrote:

Try putting a like clause into the SQL like this

WHERE (Submissions.Task_ID Like '[0-9]+')


the square brack will says to take any characters 0 through 9 and the plus
say to do it infinite number of times

Submission is a table in one of my database and Task_ID is a column in the
table.
"Staten42" wrote:

I am pulling data from an ODBC connection, and need to filter results based
on a specific field. This particular field includes both alpha and numeric
values and I only want it to pull in one or the other. Any thoughts?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude #N/A values and Return Numeric values to consecutive cells in Single Row Sam via OfficeKB.com Excel Worksheet Functions 5 February 9th 08 03:07 AM
Formatting Numeric Fields from Within MS Query Paul D. Simon Excel Discussion (Misc queries) 1 January 17th 08 05:16 PM
Return Numeric Labels that have different Numeric Values Sam via OfficeKB.com Excel Worksheet Functions 8 December 3rd 06 02:06 AM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
advance filter excluding record Souris Excel Discussion (Misc queries) 2 October 9th 05 03:53 AM


All times are GMT +1. The time now is 09:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"