Thread View: alt.comp.databases.xbase.clipper
10 messages
10 total messages
Started by Peter Strong
Tue, 28 Sep 1999 00:00
search function
Author: Peter Strong
Date: Tue, 28 Sep 1999 00:00
Date: Tue, 28 Sep 1999 00:00
15 lines
1745 bytes
1745 bytes
hello Im trying to do a search function (in MS ACESS) from a form that searches for and returns values (either to a form, or in datasheet view) that either matches or partly matches a search string. The search string will be input into a text box and when a button (submit search details) is clicked the results will be displayed. If anyone could help me as to how to tackle this problem, or what functions I should use, it would be greatly appreciated. thankyou Peter Strong
Re: search function
Author: Brent R Brian
Date: Mon, 27 Sep 1999 00:00
Date: Mon, 27 Sep 1999 00:00
21 lines
2121 bytes
2121 bytes
Are you wanting to search a single column, or multiple columns ?? B Peter Strong wrote: > > hello > > Im trying to do a search function (in MS ACESS) from a form that searches > for and returns values (either to a form, or in datasheet view) that either > matches or partly matches a search string. > > The search string will be input into a text box and when a button (submit > search details) is clicked the results will be displayed. > > If anyone could help me as to how to tackle this problem, or what functions > I should use, it would be greatly appreciated. > > thankyou > > Peter Strong
Re: search function
Author: Peter
Date: Tue, 28 Sep 1999 00:00
Date: Tue, 28 Sep 1999 00:00
29 lines
2310 bytes
2310 bytes
It will be multiple columns. I have a fair idea about how to go about it, but Im not very familiar with VB yet. thanks Brent R Brian wrote: > Are you wanting to search a single column, or multiple columns ?? > > B > > Peter Strong wrote: > > > > hello > > > > Im trying to do a search function (in MS ACESS) from a form that searches > > for and returns values (either to a form, or in datasheet view) that either > > matches or partly matches a search string. > > > > The search string will be input into a text box and when a button (submit > > search details) is clicked the results will be displayed. > > > > If anyone could help me as to how to tackle this problem, or what functions > > I should use, it would be greatly appreciated. > > > > thankyou > > > > Peter Strong
Re: search function
Author: Peter
Date: Tue, 28 Sep 1999 00:00
Date: Tue, 28 Sep 1999 00:00
35 lines
2550 bytes
2550 bytes
sorry the user will be able to search on multiple columns, but only one at a time. so, the search will only be on one column. Peter wrote: > It will be multiple columns. > I have a fair idea about how to go about it, but Im not very familiar with VB > yet. > > thanks > > Brent R Brian wrote: > > > Are you wanting to search a single column, or multiple columns ?? > > > > B > > > > Peter Strong wrote: > > > > > > hello > > > > > > Im trying to do a search function (in MS ACESS) from a form that searches > > > for and returns values (either to a form, or in datasheet view) that either > > > matches or partly matches a search string. > > > > > > The search string will be input into a text box and when a button (submit > > > search details) is clicked the results will be displayed. > > > > > > If anyone could help me as to how to tackle this problem, or what functions > > > I should use, it would be greatly appreciated. > > > > > > thankyou > > > > > > Peter Strong
Re: search function
Author: Brent R Brian
Date: Tue, 28 Sep 1999 00:00
Date: Tue, 28 Sep 1999 00:00
51 lines
2978 bytes
2978 bytes
under ms-access: select * where my_column like '%xxxx%' if I am not mistaken, the %xxx% may be a bit off, but there are wildcard characters that will need to surround the "search item", or not if an exact match is desired. I you need an example, I may still have one at the house, somewhere, ..... B Peter wrote: > > sorry > the user will be able to search on multiple columns, but only one at a time. > so, the search will only be on one column. > > Peter wrote: > > > It will be multiple columns. > > I have a fair idea about how to go about it, but Im not very familiar with VB > > yet. > > > > thanks > > > > Brent R Brian wrote: > > > > > Are you wanting to search a single column, or multiple columns ?? > > > > > > B > > > > > > Peter Strong wrote: > > > > > > > > hello > > > > > > > > Im trying to do a search function (in MS ACESS) from a form that searches > > > > for and returns values (either to a form, or in datasheet view) that either > > > > matches or partly matches a search string. > > > > > > > > The search string will be input into a text box and when a button (submit > > > > search details) is clicked the results will be displayed. > > > > > > > > If anyone could help me as to how to tackle this problem, or what functions > > > > I should use, it would be greatly appreciated. > > > > > > > > thankyou > > > > > > > > Peter Strong
Re: search function
Author: LeemingIT
Date: Tue, 28 Sep 1999 00:00
Date: Tue, 28 Sep 1999 00:00
18 lines
2023 bytes
2023 bytes
Standard wildcards, I beleive, so it would be
select * where my_column like "*<text>*"
I know this, because I often have to do a "manual" query in design view -
and in the criteria, one types
Like "*dave*"
to search for dave. I am not sure how you would parse the users' entry into
the SQL statement, though - would you
use this?
select * where my_column like "*[forms]![Form Name]![User Text]*"
Any thoughts?
Tom Kelsall
Re: search function
Author: Brent R Brian
Date: Wed, 29 Sep 1999 00:00
Date: Wed, 29 Sep 1999 00:00
25 lines
2220 bytes
2220 bytes
Forgive me, the "%" is for ADABAS databases .... B LeemingIT wrote: > > Standard wildcards, I beleive, so it would be > > select * where my_column like "*<text>*" > > I know this, because I often have to do a "manual" query in design view - > and in the criteria, one types > > Like "*dave*" > > to search for dave. I am not sure how you would parse the users' entry into > the SQL statement, though - would you > use this? > > select * where my_column like "*[forms]![Form Name]![User Text]*" > > Any thoughts? > > Tom Kelsall
Re: search function
Author: Adrian Boldan
Date: Thu, 30 Sep 1999 00:00
Date: Thu, 30 Sep 1999 00:00
13 lines
2044 bytes
2044 bytes
LeemingIT (ITManager@LeemingIT.demon.co.uk) wrote:
: Standard wildcards, I beleive, so it would be
: select * where my_column like "*<text>*"
Isn't the standard character the % (percent)? Like in:
... like "%adrian%"
--
*** Learn Esperanto - the International Language! ***
One language for all | Unu por chiuj,
the second for everyone! | la dua por chiu!
Re: search function
Author: Peter Strong
Date: Sun, 03 Oct 1999 00:00
Date: Sun, 03 Oct 1999 00:00
24 lines
2419 bytes
2419 bytes
I got a solution. I used the wildcard, but the tricky part was to make it read in the value from the form. This is what ive got: SELECT * FROM <Tables> WHERE SEARCHWORD Like "*"&([Forms]![formname]![textkeyword])&"*")) thanks everyone for their help Adrian Boldan wrote: > LeemingIT (ITManager@LeemingIT.demon.co.uk) wrote: > : Standard wildcards, I beleive, so it would be > > : select * where my_column like "*<text>*" > > Isn't the standard character the % (percent)? Like in: > ... like "%adrian%" > > -- > *** Learn Esperanto - the International Language! *** > One language for all | Unu por chiuj, > the second for everyone! | la dua por chiu!
Re: search function
Author: LeemingIT
Date: Tue, 05 Oct 1999 00:00
Date: Tue, 05 Oct 1999 00:00
11 lines
2023 bytes
2023 bytes
>Isn't the standard character the % (percent)? Like in: >... like "%adrian%" Not in Access, or Windows NT, or Windows 95, or DOS. In Windows NT, the "%" means "The next string of characters is a Windows NT word such as "USERNAME" which you should replace with a value". The second "%" replaces this. In Access " * " means "Any number of any character". Tom
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads