Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Wildcard Table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alex - 10 Jan 2008 19:05 GMT
Hello experts,

I have a query based on a table...In the table is a column named
"company."

This column contains the names of hundreds of companies with
duplicates and different spellings of the same company (I cannot edit/
normalize this table).

In my query, I can use a wildcard to find all instances of a company.
E.g., [ like *polo* ] to obtain every record of the Ralph L Polo Inc.
company and its variations.

If I wanted to search for another company, I would place another
criterion on the line below (for an 'or' or on the same line for an
'and').

My question is:  Instead of typing all of these criteria in the
"Criteria" section of the query window; can I base the criteria on a
table.  Let's say a wildcard table that looks like:
Company
*polo*
*crew*
*gap*
*d*k*

Reason being:  This table gets populated daily (again, I have no
control) and I'd like to keep a running list to continually scrape for
the old companies and add fresh criteria for new ones.

Thoughts?
KARL DEWEY - 10 Jan 2008 19:21 GMT
Make the wildcard table that looks like:
Company
polo
crew
gap
d*k
            then in criteria use    Like "*" & [WildcardTable].[Company] &
"*"

Signature

KARL DEWEY
Build a little - Test a little

> Hello experts,
>
[quoted text clipped - 27 lines]
>
> Thoughts?
alex - 10 Jan 2008 19:32 GMT
On Jan 10, 2:21 pm, KARL DEWEY <KARLDE...@discussions.microsoft.com>
wrote:
> Make the wildcard table that looks like:
> Company
[quoted text clipped - 42 lines]
>
> - Show quoted text -

Thanks Karl for the quick response.
When I enter the code above, Access thinks it's a parameter and asks
for a "Parameter Value"
KARL DEWEY - 10 Jan 2008 20:21 GMT
You have to have the table in your query.   In design view put it in the part
of the grid you have your other table but do not join.
Signature

KARL DEWEY
Build a little - Test a little

> On Jan 10, 2:21 pm, KARL DEWEY <KARLDE...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 48 lines]
> When I enter the code above, Access thinks it's a parameter and asks
> for a "Parameter Value"
alex - 10 Jan 2008 20:44 GMT
On Jan 10, 3:21 pm, KARL DEWEY <KARLDE...@discussions.microsoft.com>
wrote:
> You have to have the table in your query.   In design view put it in the part
> of the grid you have your other table but do not join.
[quoted text clipped - 56 lines]
>
> - Show quoted text -

That worked...Thanks Karl for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.