ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using Microsoft Query to Extract Data (https://www.excelbanter.com/excel-programming/280075-using-microsoft-query-extract-data.html)

Jim Wallace

Using Microsoft Query to Extract Data
 
I am using Microsoft Query to take data from an ODBC
connection to populate a spread sheet. I need to look
through a text field for the selection criteria to find a
certain string. In Access there is the INSTR() function, in
Foxpro it is the AT() function and in SQL Server it is
CharIndex() Function, Is there a matching function in
Microsoft Query that will find a string in a String?
Thanks.


Phobos

Using Microsoft Query to Extract Data
 
Are you trying to find the position of the search string within another
string or just checking to see if the string exists?

If the latter, use "WHERE [Field] Like '%searchstring%'

P


"Jim Wallace" wrote in message
...
I am using Microsoft Query to take data from an ODBC
connection to populate a spread sheet. I need to look
through a text field for the selection criteria to find a
certain string. In Access there is the INSTR() function, in
Foxpro it is the AT() function and in SQL Server it is
CharIndex() Function, Is there a matching function in
Microsoft Query that will find a string in a String?
Thanks.





All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com