Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

asp search scripts for access database

Thread Tools
 
Search this Thread
 
Old 08 June 2005, 12:17 AM
  #1  
ScoobyDriverWannabe
Scooby Regular
Thread Starter
 
ScoobyDriverWannabe's Avatar
 
Join Date: Dec 2003
Location: Sunderland
Posts: 2,446
Likes: 0
Received 0 Likes on 0 Posts
Default asp search scripts for access database

Im in the middle of making a basic website, i want to have a search feature which will search a access database.

problem is im having trouble with the ASP code. Iv tried searching google for examples which i can use to try and help me but most of them are far to complex for what i require and all the other sites you need to pay

So does anyone have any examples of basic ASP scripts that will search a DB which i could look at or any links to sites where i will actually find something of help.

any help would be much appreciated

Thanks in advance SDW
Old 08 June 2005, 08:53 AM
  #2  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Default

15seconds.com always used to be an asp script site. i used it alot.


this is the sort of thing you need. sorry it's off the top of my head, but you get the gist
loop the systemtables table and for each one, loop through the table's rows and columns looking for your string


recordset1.open "select table names from sys.tables"
while not recordset1.eof
recordset2.open select * from " & recordset.fields(0)
while not recordset2.eof
for ix=0 to recordset.fields.count-1
if instr(lcase(what_im_looking_for),lcase(recordset2. fields(ix))>0 then
'found a string
endif
next
recordset2.movenext
wend
set recordset2=nothing
recordset1.movenext
wend
set recordset1=nothing
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
JimBowen
ICE
5
02 July 2023 01:54 PM
TylerD529
General Technical
2
09 October 2015 01:53 AM
Iqy7861
Insurance
5
01 October 2015 07:57 PM
mistermexican
General Technical
2
01 October 2015 04:30 PM



Quick Reply: asp search scripts for access database



All times are GMT +1. The time now is 06:31 AM.