473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Multiple Field Search

itm
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 located in any one of the column fields so each
column field has to be searched for each account number until that
specific jurisdiction number is located (if it is-many of the accounts
won't even be located in the jurisdiction selected).

Now I am not an experienced sql, vba, or function writer so I consider
this completely over my head so your detailed help would be very much
appreciated!!!!!!!!!!! THANKS! Mary Ann

Nov 13 '05 #1
1 1698
it*@itmservices.com wrote:
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 located in any one of the
column fields so each column field has to be searched for each
account number until that specific jurisdiction number is located (if
it is-many of the accounts won't even be located in the jurisdiction
selected).

Now I am not an experienced sql, vba, or function writer so I consider
this completely over my head so your detailed help would be very much
appreciated!!!!!!!!!!! THANKS! Mary Ann


In the query builder you put a criteria entry under each on the 10 columns
making sure that each criteria is on its own row. This produces an "OR" of
the criteria rather then an "AND". The resulting SQL is similar to...

SELECT * FROM SomeTable
WHERE Field1 = SomeValue
OR Field2 = SomeValue
OR Field3 = SomeValue
etc...

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2

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

Similar topics

1
by: TH | last post by:
I am (still :) working on a recipe database. Now I am trying to figure out how to set it up for an ingredient search. What I want it to be able to do is three things: 1. Search based on just...
8
by: TJS | last post by:
what are folks doing to get around limitation of one server form per page ?
5
by: JP SIngh | last post by:
Hi All This is a complicated one, not for the faint hearted :) :) :) Please help if you can how to achieve this search. We have a freetext search entry box to allow users to search the...
4
by: RoadRunner | last post by:
Hi, I have a question. I am asked to produce a global search of a given corporate name, in more that one database. Each database has different table names and different field names in the tables....
3
by: tdemartino | last post by:
I've been searching for days, using MS help and I can't find the answer on my own. I have this code in my Access Form: If Not IsNull(Me.txtFilterDescriptionMatName) Then...
4
by: Dan | last post by:
Hi all, I am creating a search table where the keywords field is made up of several text fields and this is causing me some problems. I can concatentate the text ok but i can't seem to concatenate...
1
by: trpost | last post by:
How can I accomplish the following using AJAX / PHP: I have a form with a text field and a search button next to the text field. When I type something in the text field and hit the search button...
1
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The...
5
by: mforema | last post by:
Hi Everyone, I want to search records by typing in multiple keywords. I currently have a search form. It has a combo box, text box, Search command button, and a subform. The combo box lists the...
1
by: Kye | last post by:
It has been a while since using vb an now I have started a project and I am not sure where my mistake is in my code. Basically what I am doing is trying to build a multiple search string with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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
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...

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.