473,396 Members | 1,772 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.

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 1279
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
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....
3
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)...
3
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)...
11
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...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...

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.