home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 3052
Discussions: 188,377, Posts: 2,243,446, Members: 232,604
Old November 4th, 2002, 10:09 PM   Digg it!   #1 (permalink)
Cruizing
 
Join Date: Oct 2001
Location: Wellington, NZ
Posts: 4,398
trying to get an MS Access Form to work on PWS

trying to get an MS Access Form to work on PWS (Personal Webserver)


I select save as HTML then select the Form, then select Dynamic ASP, then it asks me about Data Source name, I am not sure wha I am to put in here, it asks me for the server URL which I enter, then select the folder where to save it C:\Inetpub\wwwroot, then finish.

I then rename the saved file to default.asp

this is the error I get

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/Default.asp, line 12


Code:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">
<TITLE>Contacts</TITLE>
</HEAD>
<BODY>
<%
If IsObject(Session("_conn")) Then
    Set conn = Session("_conn")
Else
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.open "","",""
    Set Session("_conn") = conn
End If
%>
<%
If IsObject(Session("Form_Contacts_rs")) Then
    Set rs = Session("Form_Contacts_rs")
Else
    sql = "SELECT * FROM [Contacts]"
    Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open sql, conn, 3, 3
    If rs.eof Then
        rs.AddNew
    End If
    Set Session("Form_Contacts_rs") = rs
End If
%>
<%

If cstr(Request.QueryString("Notes")) <> "" Then
    rs.Fields("Notes").Value = Request.QueryString("Notes")
End If
If cstr(Request.QueryString("Website")) <> "" Then
    rs.Fields("Website").Value = Request.QueryString("Website")
End If
If cstr(Request.QueryString("Email")) <> "" Then
    rs.Fields("Email").Value = Request.QueryString("Email")
End If
If cstr(Request.QueryString("Birthdate")) <> "" Then
    rs.Fields("Birthdate").Value = Request.QueryString("Birthdate")
End If
If cstr(Request.QueryString("Fax")) <> "" Then
    rs.Fields("Fax").Value = Request.QueryString("Fax")
End If
If cstr(Request.QueryString("Mobile")) <> "" Then
    rs.Fields("Mobile").Value = Request.QueryString("Mobile")
End If
If cstr(Request.QueryString("Phone")) <> "" Then
    rs.Fields("Phone").Value = Request.QueryString("Phone")
End If
If cstr(Request.QueryString("Address")) <> "" Then
    rs.Fields("Address").Value = Request.QueryString("Address")
End If
If cstr(Request.QueryString("Contact")) <> "" Then
    rs.Fields("Contact").Value = Request.QueryString("Contact")
End If
If cstr(Request.QueryString("Business")) <> "" Then
    rs.Fields("Business").Value = Request.QueryString("Business")
End If
If cstr(Request.QueryString("ContactID")) <> "" Then
    rs.Fields("ContactID").Value = Request.QueryString("ContactID")
End If


tempVar = Request.QueryString("nav_btn")
On Error Resume Next
If cstr(tempVar)="nav_btn_MoveFirstRecord" Then
    rs.MoveFirst
End If
If cstr(tempVar)="nav_btn_MovePrevRecord" Then
    rs.MovePrevious
    If rs.bof Then
        rs.MoveNext
    End If
End If
If cstr(tempVar)="nav_btn_MoveNextRecord" Then
    rs.MoveNext
    If rs.eof Then
        rs.MovePrevious
    End If
End If
If cstr(tempVar)="nav_btn_MoveLastRecord" Then
    rs.MoveLast
End If
If cstr(tempVar)="nav_btn_MoveAddRecord" Then
    rs.AddNew
End If
If cstr(tempVar)="nav_btn_MoveCommitRecord" Then
    rs.Update
    rs.Requery
End If
If cstr(tempVar)="nav_btn_MoveCancelUpdate" Then
    rs.CancelUpdate
    rs.Resync
End If
If cstr(tempVar)="nav_btn_MoveDeleteRecord" Then
    rs.Delete
    rs.MoveNext
    If rs.eof Then
        rs.MovePrevious
        If rs.bof Then
            rs.AddNew
        End If
    End If
End If
On Error Goto 0
%>
<OBJECT ID="Contacts_1alx"
CLASSID="CLSID:812AE312-8B8E-11CF-93C8-00AA00C08FDF"
STYLE="TOP:0;LEFT:0;">
<PARAM NAME="ALXPATH" VALUE="192.168.0.5/Contacts_1alx.asp">
</OBJECT>

</BODY>
</HTML>

VERT is offline   Reply With Quote
Old November 5th, 2002, 06:54 PM     #2 (permalink)
Cruizing
 
Join Date: Oct 2001
Location: Wellington, NZ
Posts: 4,398
ok have sorted the data source problem

VERT is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2882)
The United States Debt (20)
Looks like Burris will get his Sena.. (7)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Titan quest and Immortal Throne, an.. (17)
Recent Discussions
Folderchat Weekday thread (439)
New Build ( Finally ) (0)
MSN Hotmail Down??? (7)
Help with an Ati Radeon HD 4850.. (23)
Laptop waking up itself (0)
CPU wont boot (3)
Best digital camera for under 2.. (13)
Building first computer, will t.. (2)
get this error, "res://C:\.. (73)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 07:57 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28