473,395 Members | 2,192 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,395 software developers and data experts.

Seach Query and multiple records

Hi all,

I've been working on a database and at them moment i am stuck....I was wondering if there was a way to build a search query that wouild allow me to search mulliple data records.

At the moment my query has two fields (product and location) but only allows me to search for one product record at a time
e.g if i wanted to search for a product: Polo then it brings up the location: London

How could i get the search to find mulitple products. e.g Product: Polo, M3, Q4 which would the produce Location: London, Essex, Reading (list)

At the moment it is very time consuming when i'm searching for 100 products because i have to do them one at a time.
Is there a way to do a multiple searchs using queries or other methods.

Many thanks
Dec 3 '07 #1
2 1188
puppydogbuddy
1,923 Expert 1GB
Hi all,

I've been working on a database and at them moment i am stuck....I was wondering if there was a way to build a search query that wouild allow me to search mulliple data records.

At the moment my query has two fields (product and location) but only allows me to search for one product record at a time
e.g if i wanted to search for a product: Polo then it brings up the location: London

How could i get the search to find mulitple products. e.g Product: Polo, M3, Q4 which would the produce Location: London, Essex, Reading (list)

At the moment it is very time consuming when i'm searching for 100 products because i have to do them one at a time.
Is there a way to do a multiple searchs using queries or other methods.

Many thanks
You can have a single textbox control for entering multiple products to be searched and use the Split function to parse the field into individual components as needed for database queries. As an example:

Code: ( text )
Dim strProductSearch
Dim strProduct

strProductSearch = "Product1, Product2, Product3"
strProduct = Split(strProductSearch, ",")
' - strProductSearch is now an array of individual products that can be handled separately
Dec 3 '07 #2
puppydogbuddy
1,923 Expert 1GB
Another alternative is to use a multi-select list box control on your search form:

http://www.databasedev.co.uk/list_box_searching.html
Dec 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Iain Miller | last post by:
Now this shouldn't be hard but I've been struggling on the best way as to how to do this one for a day or 3 so I thought I'd ask the assembled company..... I'm writing an application that tracks...
1
by: Charlie | last post by:
Hello, I have data in an Access table that I would like to export to multiple HTML tables. I would like to split the data in the Access table (about 92,000 records) into multiple HTML...
4
by: Nicolae Fieraru | last post by:
Hi All, I have a Table1 with ID, Name, Address, Purchase. I want to build a query which shows all the records from Table1 (only fields ID, Name, Address), but there shouldn't be listed records...
1
by: Nicolae Fieraru | last post by:
Hi All, I have a Table1 with ID, FirstName, Surname, Address1, Address2, PostCode, Suburb, Purchase. The table list all purchases made by all customers. A customer can have multiple purchases...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
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...

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.