473,671 Members | 2,279 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 1368
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********@hotm ail.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.f scwv.edu wrote:
pi********@hotm ail.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
24023
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 tables in the database where the code resides. If we move the database with the data tables to a new directory, the links are no longer valid. I tried to update the links by changing the Connect property and refreshing: Set td = db.TableDefs(0)...
9
20310
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
12981
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 1989. I need to be able to 1) Go to a Search for 2) Enter Criteria -(Client_Last_Name) (Client_First_Name) (File_Number)
1
1709
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 numbers. He wants to search all 10 column fields with the result being all records and their associated information for a specific jurisdiction number. The jurisdiction number for an account would not be duplicated in a column field but could be...
8
3211
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 'search' may be clicked on by the user and the user can then search all records by postcode. I want to do this to prevent duplicate data entry.
1
2716
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 Me.txtEmail.SetFocus Exit Sub End If Me.txtStatusBar.Value = "Parsing..." strEmail = Me.txtEmail.Value
0
2071
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 end of this message, but I will start with an overview of the problem. I've made a content management solution for my work with a decently structured relational database system. The CMS stores articles. The CMS also stores related items --...
10
2276
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 this please. Thanks for your help in advance. The form and script are on the same page. <?php require_once('../Connections/rs_ais.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
5
3376
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 have another table that contains 2 fields, one being the keywords to search for from the string of data and the other field being the vendor name to pair up with the record. How do I reference the keywords from the 2nd table and search thru the...
0
8481
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8400
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8672
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6234
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.