Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

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 ASP Free Forums Sponsor:
  #1  
Old January 18th, 2007, 08:21 AM
Red Star Red Star is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 1 Red Star User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 22 sec
Reputation Power: 0
Accessing access queries

hi evereone

don't know if this is the correct place, I hope so

I have to connect an acces db with flash. Now I've read that you have to use asp for this. Olso I read that you can read from an access querie.

Someone of my office made the queries (and they're working fine). But what now? I'm pretty new in this.

this is the querie in acces:

a querie that is called "aVierde". this liks 3 tables a ETBeschrijving, ICPC and an linktable, wich make's the links

the asp-file:
Code:
<%

Set DataConn = Server.CreateObject("ADODB.Connection")

DataConn.Open "Driver=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("kopieVoorKaren.mdb")

Set cmdTemp = Server.CreateObject("ADODB.Command")

Set rstContacts = Server.CreateObject("ADODB.Recordset")

cmdTemp.CommandText = "aVierde"

cmdTemp.CommandType = 1

Set cmdTemp.ActiveConnection = DataConn

rstContacts.Open cmdTemp, , 1, 4

rstContacts.Move CLng(Request("Record"))

Response.write "ETCode=" & Server.URLEncode(rstContacts("link.ETCode")) & "&"

Response.write "ICD10Titel=" & Server.URLEncode(rstContacts("ICPC.ICD10Titel")) & "&"

Response.write "ETbeschrijving=" & Server.URLEncode(rstContacts("ETBeschrijving.beschrijving")) & "&"

Response.write "extra=" & Server.URLEncode(rstContacts("link.extra")) & "&"

Response.write "TotalRecords=" & rstContacts.RecordCount

rstContacts.Close

DataConn.Close

%>

in flash:

onClipEvent (data) {

strETCode = ETCode;

strICD10Titel = ICD10Titel;

strETbeschrijving = ETbeschrijving;

strExtra = extra;

strPosition = "Record " add String(CurrentRecord+1) add " of " add String(TotalRecords);

}

onClipEvent (load) {

CurrentRecord = 0;

loadVariables("vierdeState.asp?Record=0", this);
}

and than fields that are named afther the str-var's


ps: sorry for my englisch

Last edited by Shadow Wizard : January 22nd, 2007 at 07:16 AM. Reason: added [Code] and [/Code] tags around code - please do that yourself next.

Reply With Quote
  #2  
Old January 22nd, 2007, 07:21 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,250 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 355057 Folding Title: Super Ultimate Folder - Level 1Folding Points: 355057 Folding Title: Super Ultimate Folder - Level 1Folding Points: 355057 Folding Title: Super Ultimate Folder - Level 1Folding Points: 355057 Folding Title: Super Ultimate Folder - Level 1Folding Points: 355057 Folding Title: Super Ultimate Folder - Level 1Folding Points: 355057 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 10 h 43 m 15 sec
Reputation Power: 1778
hello and welcome to aspfree.

the ASP code looks fine.
you first have to install IIS on the server.
when you got it installed, create the ASP file
in the root folder (by default C:\Inetpub\wwwroot)
and name it vierdeState.asp
put your flash file there as well, and it should work.

to test your ASP only, open browser on the server
and browse to http://localhost/vierdeState.asp?Record=0

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Accessing access queries


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 2 hosted by Hostway
Stay green...Green IT