473,397 Members | 1,972 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,397 software developers and data experts.

asp search returns no results from access query

access 2000 query:

here's what i want to do. from an asp page, perform a search on a
table in access. i have used sql code in the asp page itself, but i'd
rather execute a query in access. i have success in running any query
(basic SELECT, SELECT with conditions _other_ than LIKE, etc..) for
some reason, when i execute the query below from the asp page, i get
no results.

the search.asp page just has a text box in a form that submits the
srchBOX field to the results.asp page.

here's the asp code from the results.asp page:

Dim vSearchParam
vSearchParam = Request.QueryString("srchBOX")
Set rsTODO = conn.Execute ("exec sp_SEARCH_TODO" & " '" & vSearchParam
& "'")

even if i replace vSearchParam with an actual string such as "asdf"
(and this does return results from the access query), i get no results
in my results.asp page.

what gives? i must be missing something simple here... i'm not sure if
it's an access or asp issue..

please help!

thanks

"sp_SEARCH_TODO"

SELECT mnu_REQUESTTYPE.requestTypeNm, mnu_STAFF.staffNmFirst & " " &
mnu_STAFF.staffNmLast AS whoRequested, tbl_TODO.todoID,
tbl_TODO.todoStampDate, tbl_TODO.todoStampTime, tbl_TODO.todoNm,
tbl_TODO.todoDsc, tbl_TODO.todoPromiseDate, tbl_TODO.todoPromiseTime,
tbl_TODO.todoDeliverDate, tbl_TODO.todoDeliverTime,
tbl_TODO.todoNotesFollowUp, tbl_TODO.todoTimeToComplete,
mnu_STAFF_1.staffNmFirst & " " & mnu_STAFF_1.staffNmLast AS
whoDelivered, mnu_STAFF_2.staffNmFirst & " " & mnu_STAFF_2.staffNmLast
AS whoPromised
FROM ((mnu_REQUESTTYPE RIGHT JOIN (mnu_STAFF RIGHT JOIN tbl_TODO ON
mnu_STAFF.staffID = tbl_TODO.staffNmFirst) ON
mnu_REQUESTTYPE.requestTypeID = tbl_TODO.requestTypeNm) LEFT JOIN
mnu_STAFF AS mnu_STAFF_1 ON tbl_TODO.whoDelivered =
mnu_STAFF_1.staffID) LEFT JOIN mnu_STAFF AS mnu_STAFF_2 ON
tbl_TODO.whoPromised = mnu_STAFF_2.staffID
WHERE (((tbl_TODO.todoDsc) Like '*' & [vSearchParam] & '*'));
Jul 19 '05 #1
0 2790

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

Similar topics

4
by: leegold2 | last post by:
Below is some code from a FULLTEXT search. My question is how do I get a count of the number of rows found by the search? $query="SELECT * FROM balloon_txt WHERE MATCH(access_no, recs_txt)...
2
by: Arsalan Ahmad | last post by:
Hi, May be I am a newbie, or may be i dont have that much insight in following systems ..i.e. why i have some confusions as below: In many websites, when search is performed on some keywords...
4
by: zakhirn | last post by:
Hello, I have an extremely new user to XML and XSL, and I would like to know how to search XML data via a input form in HTML, and have the results displayed in HTML. If anyone has code that...
31
by: DWolff | last post by:
I'm somewhat new to Access, and have no VB experience at all (except for modifying existing code where obvious). I built a data entry form that works fine. Typically, a client will call in and...
9
by: lightning | last post by:
Hi all, I'm not very conversant with the vocabulary of Access, so please ask for clarification if necessary... I am trying to build a search form that allows combinations of search terms. For...
14
by: Simon Gare | last post by:
Hi, have a search.asp page with results.asp page drawing data from an SQL db, problem is the user has to type the whole field value into the search box to retrieve the value on results.asp, what...
1
Merlin1857
by: Merlin1857 | last post by:
How to search multiple fields using ASP A major issue for me when I first started writing in VB Script was constructing the ability to search a table using multiple field input from a form and...
49
by: martin DH | last post by:
Hello all, I'm back with another SQL related problem. The details are below, but in short: I am using Access 2003. I have a table whose structure may include four different associate names per...
1
by: dougmeece | last post by:
Good Morning everyone. I have a form with two combo boxes and 1 command button. I am trying to use the command button to search a table and populate a query. I will then have the query display the...
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: 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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.