Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Like Command Question

I was trying to get into the Access section, I am trying to use the Like
command inconjunction with imput from a user. In other words, what I want to
serch for is stored in a table. I know how to search based on that, but how
do I get to use the wildcard options of the like command
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Like Command Question

Look at help on Like in the Excel VBE. It pretty much explains how to use
it. If you have a specific criteria you want help with post the details.

--
Regards,
Tom Ogilvy

"dodge1984" wrote in message
...
I was trying to get into the Access section, I am trying to use the Like
command inconjunction with imput from a user. In other words, what I want

to
serch for is stored in a table. I know how to search based on that, but

how
do I get to use the wildcard options of the like command



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Like Command Question

Is the question how to get the user's input in a way you can use for your
"like" search? That depends on whether you think you can teach your users
the wildcards or if you think they need some more intuitive way to input the
search criteria. If they know or can be taught the wildcards, all you need
is an input box to have them specify the string to use:
SearchStr = Inputbox("Enter the criteria for the search:")
' Enter your table lookup here (not sure how you are implementing it, could
be various ways) with the condition "[SearchFieldName] like '" & SearchStr&
"'"
' Note the single quotes around the 'like' condition

If users need more guidance you could set up a user form similar to an
"advanced search" form used for internet searches, with text boxes (for
example) that let them enter things like "Search for entries beginning with:"
and "Search for entries that contain the word:" and then set up your 'like'
wildcard match based on the input.

Not sure if this is what you are looking for, but hope it helps.

"dodge1984" wrote:

I was trying to get into the Access section, I am trying to use the Like
command inconjunction with imput from a user. In other words, what I want to
serch for is stored in a table. I know how to search based on that, but how
do I get to use the wildcard options of the like command

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
Fill Down command Question Bassplayer4x4 Excel Worksheet Functions 2 January 16th 09 02:31 PM
Simple question on With command teepee[_3_] Excel Discussion (Misc queries) 2 December 26th 08 06:27 PM
command bar question Tom Ogilvy Excel Programming 0 July 22nd 04 05:02 AM
Command Button Question Todd D. Levy Excel Programming 4 July 7th 04 03:18 PM
custom command bar question rju[_3_] Excel Programming 4 July 7th 04 04:53 AM


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