A
amitbadgi
Hi guys, I have created a form in access which is used to search a
access database. There are 2 cities and each of em has 2 access tables,
I have successfully written the sql query and attached it to a macro
which in turn attached it to the search button on my form. Now my
question is that I want to enable teh fuzzy search for my form, which
is , if a user enters a Address, say 1547, he shld be able to get all
the following matches from the database
1547 bulldog
1547 wshaw
1547 cedar
and so on....
this is the query that I have written that takes in user input and
displays the result. Currently I have to enter the exact address etc,
else it wouldnt work and I want teh fuzzy search to work.
SELECT OneWorld.bus_id, OneWorld.bus_nam, OneWorld.bus_add,
OneWorld.city, OneWorld.state, OneWorld.zip, OneWorld.phone,
OneWorld.license
FROM [Select Distinct dbo_businessNC.bus_id as
bus_id,dbo_businessNC.bus_name as bus_nam,dbo_businessNC.adrs1 as
bus_add,dbo_businessNC.city as city,dbo_businessNC.state as
state,dbo_businessNC.zip as zip, dbo_businessNC.phone as phone,
dbo_occhistoryNC.license as license from dbo_businessNC,
dbo_occhistoryNC WHERE ( dbo_businessNC.bus_id=dbo_occhistoryNC.bus_id)
UNION ALL Select bus_id, bus_name as bus_nam, bus_add, city, state,
zip, phone, license from Hawaccsumm
]. AS OneWorld
WHERE (((OneWorld.bus_id) = [Forms].[Form1].[Text2])) OR
(((OneWorld.bus_nam) =[Forms].[Form1].[Text5])) OR
(((OneWorld.bus_add)= [Forms].[Form1].[Text8])) OR (((OneWorld.phone)
=[Forms].[Form1].[Text10])) OR
(((OneWorld.zip)=[Forms].[Form1].[Text15]));
Thanks in advance
access database. There are 2 cities and each of em has 2 access tables,
I have successfully written the sql query and attached it to a macro
which in turn attached it to the search button on my form. Now my
question is that I want to enable teh fuzzy search for my form, which
is , if a user enters a Address, say 1547, he shld be able to get all
the following matches from the database
1547 bulldog
1547 wshaw
1547 cedar
and so on....
this is the query that I have written that takes in user input and
displays the result. Currently I have to enter the exact address etc,
else it wouldnt work and I want teh fuzzy search to work.
SELECT OneWorld.bus_id, OneWorld.bus_nam, OneWorld.bus_add,
OneWorld.city, OneWorld.state, OneWorld.zip, OneWorld.phone,
OneWorld.license
FROM [Select Distinct dbo_businessNC.bus_id as
bus_id,dbo_businessNC.bus_name as bus_nam,dbo_businessNC.adrs1 as
bus_add,dbo_businessNC.city as city,dbo_businessNC.state as
state,dbo_businessNC.zip as zip, dbo_businessNC.phone as phone,
dbo_occhistoryNC.license as license from dbo_businessNC,
dbo_occhistoryNC WHERE ( dbo_businessNC.bus_id=dbo_occhistoryNC.bus_id)
UNION ALL Select bus_id, bus_name as bus_nam, bus_add, city, state,
zip, phone, license from Hawaccsumm
]. AS OneWorld
WHERE (((OneWorld.bus_id) = [Forms].[Form1].[Text2])) OR
(((OneWorld.bus_nam) =[Forms].[Form1].[Text5])) OR
(((OneWorld.bus_add)= [Forms].[Form1].[Text8])) OR (((OneWorld.phone)
=[Forms].[Form1].[Text10])) OR
(((OneWorld.zip)=[Forms].[Form1].[Text15]));
Thanks in advance