Re: Database Search with string portion




SELECT *
FROM SupplierTable INNER JOIN ShortTitles
ON SupplierTable.Name LIKE "*" & ShortTitles.Name & "*"

Or just add the two tables to the query grid with no join and under the Name
field set the criteria to something like the following:


Field: Name
Table: SupplierTable
Criteria: LIKE "*" & [ShortTitles].[Name] & "*"



Ananth wrote:

IN MS Access Query Design Mode

We have 2 tables

Table-1 Supplier Table with Full Address â?? Mutlifields (Name, Address,
email etc)
Table-2 Short Title Supplier â??Single field

Example1) Sony International, Sony Local, Global Sony, J-Sony-Singapore as
supplier name in Table A
2) Pepsi Holdings, Pepisico, Singapore Pepsi as supplier name in Table 2

These 2 companies have short names as Sony, Pepsi in Table 2.

Using MS Access Query in Design Mode , how do I link these 2 tables and
extract data from Table-1 for Sony, Pepsi

My search normally at a time is to look for data in Table-1 for 50 Short
name suppliers.

Any help will ge greatly appreciated.
.



Relevant Pages

  • Re: Access combo box-show name, not ID, in table?
    ... > there a better way to link to the Supplier Table that I'm missing? ... Put another way, why duplicate the table with a query, if I ... Those queries need to be left join queries.. ... I understand the norm is to then store the Supplier ID ...
    (microsoft.public.access.gettingstarted)
  • Re: Opposite Not In List
    ... The Control Source of the combo box should simply be SELECT ToolID, ToolName ... Your query is hiding data: any tool that isn't yet assigned to a job won't ... the Supplier when you try to add the new Tool to the Tools table. ... Dim sTitle As String ...
    (microsoft.public.access.formscoding)
  • Re: Simple query??
    ... If the names were changed to PracticeSuppier for the table and AutoCategory for the field then the query would look like the following. ... , AUTO CATEGORY ... GROUP BY SUPPLIER; ... SELECT DISTINCT [practice suppliers].SUPPLIER ...
    (microsoft.public.access.queries)
  • Re: Access combo box-show name, not ID, in table?
    ... there a better way to link to the Supplier Table that I'm missing? ... Put another way, why duplicate the table with a query, if I can ... Those queries need to be left join queries.. ... but I have to ask: If the normal and recommended way is to store ...
    (microsoft.public.access.gettingstarted)
  • Re: "pivoting" data with a querry
    ... I created a make table query from the Sage Line100 ODBC datasource (had to ... ODBC datasource) I then created a union query to normalise the table as you ... then created a select query to filter out the ItemNumber I ... > SELECT ItemNumber, Supplier1 as Supplier, 1 as SupNum ...
    (microsoft.public.access.queries)