473,512 Members | 15,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Search all tables for a field and then display all account if found

I am trying to create a search where the user can type in a word and if
there are any matching word(s) on any table that it will display the
tables matches. I am not real familiar with Access I am still
learning. If anyone has any ideas of how to accomplish this it would
be greatly appreciated.

Thank you

-D

Jun 5 '06 #1
3 1361
if you want to search more than one or two fields for the same word(s),
then your database structure sounds a bit suspect. Why would you have
the same type of data in more than one field in your table? Could you
give a scenario illustrating what you are trying to implement? Perhaps
your design is less than ideal.

Jun 6 '06 #2

pi********@hotmail.com wrote:
if you want to search more than one or two fields for the same word(s),
then your database structure sounds a bit suspect. Why would you have
the same type of data in more than one field in your table? Could you
give a scenario illustrating what you are trying to implement? Perhaps
your design is less than ideal.


Yes my design wasn't quite right but I fixed it. When I meant search
forms I meant be able to find like key words. My fields contain long
sentences such as "Problem/Resolutions" so when people want to refer
back to these or for an easy look up they could just type in a keyword
and all the fields that have that word would come up.

Jun 23 '06 #3

ws******@mail.fscwv.edu wrote:
pi********@hotmail.com wrote:
if you want to search more than one or two fields for the same word(s),
then your database structure sounds a bit suspect. Why would you have
the same type of data in more than one field in your table? Could you
give a scenario illustrating what you are trying to implement? Perhaps
your design is less than ideal.


Yes my design wasn't quite right but I fixed it. When I meant search
forms I meant be able to find like key words. My fields contain long
sentences such as "Problem/Resolutions" so when people want to refer
back to these or for an easy look up they could just type in a keyword
and all the fields that have that word would come up.


create a query...

SELECT {FieldList}
FROM {SomeTable}
WHERE {SomeField} LIKE "*" & Forms![MyForm]![txtTextbox] &"*"

and a form.... add a textbox called txtTextbox
and then save the form.

Modify the SQL to point at whatever form you like (it must be open for
this to work.)
You could create a button that runs the query.

DoCmd.OpenQuery "qryMyQuery"

Jun 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
23997
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
9
20261
by: Christopher Koh | last post by:
I will make a form which will search the database (just like google interface) that will look/match for the exact name in the records of a given fieldname. Any suggestions on how to make the code?
4
12962
by: Gobi | last post by:
Hello, I have a Database with lists of Clients in each. Every year a new tables is created with the naming convention "CloseYear" ie close1999, close2000 There are tables from this year back to...
1
1700
by: itm | last post by:
My boss has an Access 2002 db with 2 tables that each include almost 1,000,000 records. Their common demoninator is an account number. One of the tables has 10 column fields with jurisdiction...
8
3195
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
1
2709
by: Eric | last post by:
Hi: I have two files. I search pattern ":" from emails text file and save email contents into a database. Another search pattern " field is blank. Please try again.", vbExclamation + vbOKOnly...
0
2065
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the...
10
2257
by: jonathan184 | last post by:
Hi I tried getting this to work through dreamweaver but it did not. So i found a n example on the internet , i followed everything exactly the search script does not work. Could somebody help me...
5
3358
by: kanley | last post by:
I have a main table with a text description field. In this field, its populated with a string of data. I need to identify from this string of data the name of the vendor using some keywords. I...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.