ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 21st, 2003, 04:13 AM
slinky2000 slinky2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 28 slinky2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
asp to access query

ok, im using flash for this but all as it does it pass a variable,

anyway, ims tuck on this, how can i get the variable that flash passes to enter into a search query in access?


u know i'll set up the query in access to search for "name" but i cant figure how to get the variable from outside access to get it into the query to display the required results


u get me?

thanks
Slinky

Reply With Quote
  #2  
Old March 21st, 2003, 02:18 PM
cdarling cdarling is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 29 cdarling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm not clear exactly what you're asking, so I can't give you a good answer yet.

Could you post the specific query you're using? That might help me understand the question.

Charlie

Reply With Quote
  #3  
Old March 23rd, 2003, 08:49 PM
slinky2000 slinky2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 28 slinky2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok, sorry,


ive some asp code that writes out data from a database to an asp page seperating each entry with a * like this:

http://imdasp.infj.ulst.ac.uk/stefa..._4/get_vars.asp


anyway this is straight from a table, and then flash just picks up the data and seperates then displays it like here:


http://imdasp.infj.ulst.ac.uk/stefa...j_scroller.html


what im asking, even just do it in html so it'll output the code like this is ,


I want the user to input some data into a field, say a name and search through a set data field and out put the data like this, so then i can do the same in flash,

u get me now mate?t dont know how,

Reply With Quote
  #4  
Old March 23rd, 2003, 08:54 PM
slinky2000 slinky2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 28 slinky2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
see this is what ive set up already:

http://imdasp.infj.ulst.ac.uk/stefa...ame_search.html


but its not right, all as it does it sort names,

in an ideal world i could set up a query inside access, u know using a wizard and when the user enters a name or whatever into the search box it would enter their inputed "data" into the criteria box of access so it'll display the data when run like the page above with the *'s


hope this helps mate!

Reply With Quote
  #5  
Old March 24th, 2003, 07:23 AM
cdarling cdarling is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 29 cdarling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Stored Queries On An ASP Page Using MS Access And VBScript

This article will get you started:
http://stardeveloper.com:8080/artic...01050101&page=1

But the approach described is a little limited. You wouldn't want to pass more than two or three parameters using this technique.

For a more "heavy duty" approach, read this article:

http://msdn.microsoft.com/library/d.../adocreateq.asp

You'll find more articles and sample code here:

http://www.aspin.com/home/tutorial/database/storedpr

It's not exactly simple, but it's well worth learning how to do. It's more efficient -- if you create a separate function for each stored query you call, it makes your main code more manageable -- and it's complete protection against SQL injection attacks.

Reply With Quote
  #6  
Old March 24th, 2003, 07:31 AM
slinky2000 slinky2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 28 slinky2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
this looks liek what im tryin to get,

i'll let u know how i get on,

cheers mate

Reply With Quote
  #7  
Old March 24th, 2003, 08:18 AM
slinky2000 slinky2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 28 slinky2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i cant get my head around this,

i'll make this simpler,


how can i enter a "search name" into a field on a html page that searches in a table called "people" into a name called "name" and displays the data like this

http://imdasp.infj.ulst.ac.uk/stefa..._4/get_vars.asp


heres my code for this page:

Code:
<%

set dj = Server.CreateObject("ADODB.Recordset")


strconn="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE="
strconn=strconn & server.mappath("data.mdb") & ";"


dj.ActiveConnection = strconn

dj.Source = "SELECT * FROM people_order"

dj.Open()

response.write "data="

while not (dj.eof)

response.write (dj.Fields.Item("name").Value)

response.write "*"

response.write (dj.fields.Item("info").Value)

response.write "*"

response.write (dj.fields.Item("style").Value)

response.write "*"

response.write (dj.fields.Item("bpm").Value)

response.write "*"

response.write (dj.fields.Item("p_res").Value)

response.write "*"

response.write (dj.fields.Item("c_res").Value)

response.write "*"

response.write (dj.fields.Item("g_spot").Value)

response.write "*"

response.write (dj.fields.Item("l_set").Value)

response.write "*"

response.write (dj.fields.Item("y_dj").Value)

response.write "*"

response.write (dj.fields.Item("f_rec").Value)

response.write "*"

response.write (dj.fields.Item("f_ven").Value)

response.write "*"

response.write (dj.fields.Item("m_set").Value)

response.write "*"

response.write (dj.fields.Item("c_det").Value)

response.write "*"

response.write (dj.fields.Item("s_url").Value)

response.write "*"

response.write (dj.fields.Item("pic").Value)

response.write "*"


dj.movenext

wend

%>

Reply With Quote
  #8  
Old March 27th, 2003, 01:48 AM
yassoor's Avatar
yassoor yassoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Canada - Egypt
Posts: 60 yassoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Make your Flash submit button redirects to a page with the name to search for as part of the URL

http://aaa.aaa.aaa/get_vars.asp?NAME=WhatTheUserEntered

in the get_vars.asp page change the query to be

"SELECT * FROM people_order WHERE name = '" & Request("NAME") & "'"


"SELECT * FROM people_order WHERE name = single qoute double qoutes & Request("NAME") & double qoutes single qoutes double qoutes

I think I mis-spelt qoutes

I hope this is of any help
__________________
I hope this is of any help to anyone.

Yassoor
http://www.WebsitesCreation.ca

Reply With Quote
  #9  
Old March 27th, 2003, 11:06 AM
slinky2000 slinky2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 28 slinky2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ah thanks mate, i know where your comin from!

ive sorta give up on it to tell you the truth, but i think if ive time in the next few days im gonna try this!


cheers

Slinky

Reply With Quote
  #10  
Old November 13th, 2003, 01:45 PM
davidDuke's Avatar
davidDuke davidDuke is offline
<? echo "Hello World!"; ?>
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: 30pixles by 30pixels
Posts: 125 davidDuke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 17 sec
Reputation Power: 5
Send a message via AIM to davidDuke Send a message via MSN to davidDuke
Don't Give Up, it'll be worth it when it works!

- D#

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > asp to access query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT