PC Review


Reply
Thread Tools Rate Thread

Again, Keyword Search (Using Macros)

 
 
=?Utf-8?B?YWp3aXR0bWFu?=
Guest
Posts: n/a
 
      30th Aug 2006
I have created an Access database that houses information for 2000
properties. In this database, the user can search properties by taxlot
number or street address. I would like them to be able to search the
form (called 'Mainpage') by keyword. For example, the property
located at 170 SOUTH OREGON STREET is also known as the Brunner
Building and the Old Library. Ideally, I would like them to be able to
search "Brunner," "Old," "Library," etc. and the form for
the 170 SOUTH OREGON STREET would appear. So, I have created a field
(called 'Search' that is located on Mainpage) that has a string of
all the words that each individual property could be called.

Others have told me to create a query with criteria and then link it to
the form. Something went awry there... As a self-taught novice, I
cannot seem to understand what is going wrong and what I have to do to
get this to work.

One told me to utilize the 'After Update' Command, but, again,
things did not work out.

Does anyoneknow how might be the easiest way to create this keyword
search?



 
Reply With Quote
 
 
 
 
Smartin
Guest
Posts: n/a
 
      31st Aug 2006
ajwittman wrote:
> I have created an Access database that houses information for 2000
> properties. In this database, the user can search properties by taxlot
> number or street address. I would like them to be able to search the
> form (called 'Mainpage') by keyword. For example, the property
> located at 170 SOUTH OREGON STREET is also known as the Brunner
> Building and the Old Library. Ideally, I would like them to be able to
> search "Brunner," "Old," "Library," etc. and the form for
> the 170 SOUTH OREGON STREET would appear. So, I have created a field
> (called 'Search' that is located on Mainpage) that has a string of
> all the words that each individual property could be called.
>
> Others have told me to create a query with criteria and then link it to
> the form. Something went awry there... As a self-taught novice, I
> cannot seem to understand what is going wrong and what I have to do to
> get this to work.
>
> One told me to utilize the 'After Update' Command, but, again,
> things did not work out.
>
> Does anyoneknow how might be the easiest way to create this keyword
> search?
>
>
>


How is your data organized? Based on what you say, I expect you need a
table for Properties and a separate table for property Aliases, with a
1-to-many relationship. The aliases table needs to include a foreign key
to properties.

The search can then attack the specifics somewhere along these lines:

SELECT PROPERTIES.*
FROM PROPERTIES LEFT JOIN ALIASES
ON PROPERTIES.PROPERTYID = ALIASES.PROPERTYID
WHERE ALIASES.DESCRIPTION LIKE '*' & <search stuff> * '*';

Now this only works when searching for alias information, not the actual
street address or taxlot.

Does this help at all?
--
Smartin
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
producing a report via a keyword - filtering and macros not suitab UKMAN Microsoft Excel Worksheet Functions 1 1st Jun 2010 10:58 PM
Keyword Search Saxman Microsoft Access 1 12th Oct 2006 11:08 PM
creating a keyword search using macros ajwittman@gmail.com Microsoft Access 1 31st Aug 2006 04:44 AM
keyword search Chrisx Microsoft Access Forms 2 17th Feb 2004 09:29 PM
search by keyword ! lfjca Microsoft Dot NET Framework 1 17th Jul 2003 06:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:47 AM.