Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ADO/ODBC : connecting access using ASP Signup · Login
Author Thread
connecting access using ASP
Posted in tutorial: Accessing database from an ASP page
·  monang
User
Joined: 16 Jul 2003
Total Posts: 2
connecting access using ASP
Posted: 16 Jul 2003
#1

strnim = Lcase(Request("nim"))
strcode = Lcase(Request("mk_kode"))
dim MyConn,rst


Set MyConn = Server.CreateObject("ADODB.Connection")
openStr = "driver={Microsoft Access Driver (*.mdb)};" & _
"dbq=" & Server.MapPath("wap.mdb")
MyConn.Open openStr,"",""

strsql="select sum(sks) from view where nim='"&strnim&"'"
set rst=server.createobject("ADODB.Recordset")
-------------------------------------------------------------------
#2
strnim = Lcase(Request("nim"))
strcode = Lcase(Request("mk_kode"))
dim MyConn,rst

Set MyConn = server.createobject("ADODB.connection")
MyConn.open "wap","",""

strsql="select sum(sks) from view where nim='"&strnim&"'"
set rst=server.createobject("ADODB.Recordset")
--------------------------------------------------------------------
i need help here, the #2 code runs well on my pc. but wont run on my online server , i've modified to #1 , i think it should run, but i doesnt. any help would be aprreciated.
·  smtyenene
User
Joined: 2 Aug 2003
Total Posts: 3
Response on Connecting Access
Posted: 6 Aug 2003
Let me welcome you all guys myself personal I prefered to connect Access to my ASp pages using DSN
,

It so extremely easier even if you are not a good Programmer .
Please try to make life easier for you by reading tutorial on displaying data information to Clients/User

Then at the moment I am failing to explain in more
details cause ,of not sure if you have covered the tutorials which I am refering you to read ,

Please don't feel hestitate to contact me at any time on smtyenene@ufh.ac.za
After you have went through those tutorials
Cheers


I would like to get some new information about Asp

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.