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
2 1188
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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: 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...
| |