#1   Report Post  
Posted to microsoft.public.excel.misc
Will
 
Posts: n/a
Default Query problem

Hello,

I know how to set up query parameters where the paramater entered
provides a value for one of the query fields. What I am struggling with
is setting up a parameterised query where the parameter entered is the
first character in a field. In other words I want to parameteries a
"begins with" criteria. In the Value field within MS Query I have
entered Like '[parameter]%' which obviously isn't working.

Can anyone tell me the correct syntax please?

Thanks in advance

Will

  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Query problem

replace the % with *. Different systems use different wildcard
characters to make life spicier.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.misc
Will
 
Posts: n/a
Default Query problem

No joy with that I am afraid.

For info if I use the query builder the syntax for a 'begins with'
query is

'A%'

I want to bring back different fields based on the starting letter of
that field. By making it parameterised I get round the fact that the
ODBC interface crashes due to the amount of data I am trying to bring
back.

Thanks

Will

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
"Query cannot be edited by the Query Wizard" PancakeBatter Excel Discussion (Misc queries) 0 April 25th 05 06:59 PM
User Defined Variables in MS query cause a problem to import data snb Excel Discussion (Misc queries) 0 April 13th 05 01:16 AM
Microsoft Query Help Patti Excel Worksheet Functions 4 December 25th 04 10:54 AM
query problem after changing to SQL server Margaret Excel Discussion (Misc queries) 1 December 13th 04 12:23 PM
Use SQL statements in Excel VBA to query SQL Server Data Problem Thank You Excel Worksheet Functions 0 November 20th 04 01:45 PM


All times are GMT +1. The time now is 04:06 AM.

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"