473,569 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about using several search criteria on a form

jm
Hi, I have a form that I need to search several with several items,
some together and some separate.

Say I have a date, lastname, and invoice and I want to search on any
of these individually. Do I create three sql data objects and key
each object to the correct control?

What if I want to use all three? Just create a fourth with all three
controls for the @variable?

Thanks for any help.

Nov 13 '07 #1
3 1283
On Nov 13, 4:56 pm, jm <needin4mat...@ gmail.comwrote:
Hi, I have a form that I need to search several with several items,
some together and some separate.

Say I have a date, lastname, and invoice and I want to search on any
of these individually. Do I create three sql data objects and key
each object to the correct control?

What if I want to use all three? Just create a fourth with all three
controls for the @variable?

Thanks for any help.
You also can build a stored procedure to make a search according to
the @querytype and @queryvalue. And that stored procedure can be used
for all of your queries

Nov 13 '07 #2
jm
On Nov 13, 11:03 am, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Nov 13, 4:56 pm, jm <needin4mat...@ gmail.comwrote:
Hi, I have a form that I need to search several with several items,
some together and some separate.
Say I have a date, lastname, and invoice and I want to search on any
of these individually. Do I create three sql data objects and key
each object to the correct control?
What if I want to use all three? Just create a fourth with all three
controls for the @variable?
Thanks for any help.

You also can build a stored procedure to make a search according to
the @querytype and @queryvalue. And that stored procedure can be used
for all of your queries
I did a search and didn't see any examples. Do you know a site?

Nov 13 '07 #3
jm
On Nov 13, 11:03 am, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Nov 13, 4:56 pm, jm <needin4mat...@ gmail.comwrote:
Hi, I have a form that I need to search several with several items,
some together and some separate.
Say I have a date, lastname, and invoice and I want to search on any
of these individually. Do I create three sql data objects and key
each object to the correct control?
What if I want to use all three? Just create a fourth with all three
controls for the @variable?
Thanks for any help.

You also can build a stored procedure to make a search according to
the @querytype and @queryvalue. And that stored procedure can be used
for all of your queries
Are you saying that I send a parameter over something hidden I make
up that tells it what the querytype is?

Nov 13 '07 #4

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

Similar topics

16
15723
by: Dave Smithz | last post by:
Hi, In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained. Presently we get a "Page has expired" message. How can we avoid this? Full details: Having searched for postings on how to avoid the "Page has Expired"...
3
3109
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c) look at results in datasheet view If I want to run the query again, I must d) click to close the datasheet view e) click on the query f) enter...
3
355
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c) look at results in datasheet view If I want to run the query again, I must d) click to close the datasheet view e) click on the query f) enter...
11
1121
by: Agnes | last post by:
In my form load() Dim daSeaInvoice As New SqlDataAdapter("select * from InvoiceHeader ;select * from invoicedetail, conSea) dim myDataSet as new dataset() daSeaInvoice.fill(mydataset). As I got over 50000 records in invoiceheader and over 200000 record in invoicedetail It seems quit slow to load the form...
0
7701
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...
0
7924
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. ...
1
7677
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
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...
0
3653
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...
1
2115
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
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
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...

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.