#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default editing a query

Hello,

I want to add a query criteria using the 'begins with' option.

I cannot get the syntax right. Choosing --- begins with [xxx] ----- does
not work.

what should it be?

Help much appreciated,

A struggling Texas Tonie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 594
Default editing a query

This is from the Autofilter........maybe someting like it will work for
you...........

Criteria1:="=a*"

Vaya con Dios,
Chuck, CABGx3


"Texas Tonie" wrote in message
...
Hello,

I want to add a query criteria using the 'begins with' option.

I cannot get the syntax right. Choosing --- begins with [xxx] -----

does
not work.

what should it be?

Help much appreciated,

A struggling Texas Tonie



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default editing a query

Try something like this:

The below SQL selects names that begin with the letter A.

SELECT myTbl.Name
FROM myTbl
WHERE myTbl.Name LIKE 'A%'

Note: The Pct Symbol (%) is a wildcard

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Texas Tonie" wrote in message
...
Hello,

I want to add a query criteria using the 'begins with' option.

I cannot get the syntax right. Choosing --- begins with [xxx] -----
does
not work.

what should it be?

Help much appreciated,

A struggling Texas Tonie




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default editing a query


Like '%' + [parameter] + '%' works in SQL..........

"CLR" wrote:

This is from the Autofilter........maybe someting like it will work for
you...........

Criteria1:="=a*"

Vaya con Dios,
Chuck, CABGx3


"Texas Tonie" wrote in message
...
Hello,

I want to add a query criteria using the 'begins with' option.

I cannot get the syntax right. Choosing --- begins with [xxx] -----

does
not work.

what should it be?

Help much appreciated,

A struggling Texas Tonie




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default editing a query

It turns out that

Like '%' + [parameter] + '%' works in SQL



"Ron Coderre" wrote:

Try something like this:

The below SQL selects names that begin with the letter A.

SELECT myTbl.Name
FROM myTbl
WHERE myTbl.Name LIKE 'A%'

Note: The Pct Symbol (%) is a wildcard

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Texas Tonie" wrote in message
...
Hello,

I want to add a query criteria using the 'begins with' option.

I cannot get the syntax right. Choosing --- begins with [xxx] -----
does
not work.

what should it be?

Help much appreciated,

A struggling Texas Tonie





Reply
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
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Editing external DB query harry50hn Excel Discussion (Misc queries) 0 April 7th 06 07:20 PM
Save data retreived from query without saving query Anthony Excel Discussion (Misc queries) 0 January 25th 06 07:17 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Editing MS Query Patti Excel Worksheet Functions 2 December 2nd 04 01:31 PM


All times are GMT +1. The time now is 07:20 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"