Using Database Information In The Webpage

Jan 4, 2006

I've been attempting to link a ms access database to our company's website, but now each time I try to view the page I recieve the following message:

" HTTP Error 403
403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please contact the Web server's administrator if the problem persists. "

...rude.

Here is the code...

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include virtual="/Connections/TRIAL2.asp" -->
<%
var Trial2 = Server.CreateObject("ADODB.Recordset");
Trial2.ActiveConnection = MM_TRIAL2_STRING;
Trial2.Source = "SELECT * FROM [website update] ORDER BY Price ASC";
Trial2.CursorType = 0;
Trial2.CursorLocation = 2;
Trial2.LockType = 1;
Trial2.Open();
var Trial2_numRows = 0;
%>
<%
var Repeat1__numRows = -1;
var Repeat1__index = 0;
Trial2_numRows += Repeat1__numRows;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style6 {font-size: 12px; font-family: arial;}
-->
</style>
</head>

<body>
<table width="82%" border="1" cellspacing="0" cellpadding="0" summary="List of property details">
<tr>
<th width="22%" scope="col"><span class="style6"> Code </span></th>
<th width="18%" scope="col"><span class="style6">Address</span></th>
<th width="28%" scope="col"><span class="style6">Suburb</span></th>
<th width="17%" scope="col"><span class="style6">Price</span></th>
<th width="15%" scope="col"><span class="style6">Title</span></th>
</tr>
<% while ((Repeat1__numRows-- != 0) && (!Trial2.EOF)) { %>
<tr>
<td><%=(Trial2.Fields.Item("Property Code").Value)%></td>
<td><%=(Trial2.Fields.Item("Address").Value)%></td>
<td><%=(Trial2.Fields.Item("Suburb").Value)%></td>
<td><%=(Trial2.Fields.Item("Price").Value)%></td>
<td><%=(Trial2.Fields.Item("Title").Value)%></td>
</tr>
<%
Repeat1__index++;
Trial2.MoveNext();
}
%>

</table>
</body>
</html>
<%
Trial2.Close();
%>

I can't find any info on this error through google, so i'm not sure what step to take next. Any advice would be great, I'm willing to try out other databases (obviously retyping the data would be a pain in the arm but if it works its worth it)

Cheers:p

View Replies


ADVERTISEMENT

Open Database Through Webpage Or Convert To Web?

Dec 15, 2005

Right, I knew this day would arrive and have somewhat been dreading it but excited by the idea of a new development at the same time.

We have a database within the school on our server that staff would like to be able to access at home through the internet. They will need to be able to view, add and edit data. What is my best way of doing this for someone who has never done this before?

Is it possible just to put a link on a website? or do I have to covert?

Is the MSAcces dataaccess pages something i should look at? Should I use VB.NET? ASP.NET?Frontpage? Everyone seems to have a different take on this from the forum but most of the advice was quite old. So what do you all think out there?

And How can I learn really really fast? Any online tutorials or Books people can suggest would be ever so helpful as well.

Thanks alot in advance for any support you are able to give me with regards my best route of action.

View 14 Replies View Related

Submitting Webpage Values To Database (ASP.NET 2.0 And Access)

Mar 8, 2007

Here is my code:PHP Code:<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim Dbconnection, sqlcommand, dbcommunication, dbread
        Dbconnection = New Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("LAM.mdb"))
        Dbconnection.Open()
        sqlcommand = "INSERT INTO Customers([CustomerID],[LastName],[FirstName],[Title],[BirthDate],[Address],[Town],[County],[PostCode],[HomePhone]) values ('" & CustomerID.Text & "', '" & LastName.Text & "', '" & FirstName.Text & "','" & Title.Text & "', '" & BirthDate.Text & "', '" & Address.Text & "', '" & Town.Text & "', '" & County.Text & "', '" & PostCode.Text & "', '" & HomePhone.Text & "')"
        dbcommunication = New Data.OleDb.OleDbCommand(sqlcommand, Dbconnection)
        dbread = dbcommunication.ExecuteReader()
        dbread.Close()
        Dbconnection.Close()
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:TextBox ID="CustomerID" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="LastName" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="FirstName" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="Title" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="BirthDate" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="Address" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="Town" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="County" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="PostCode" runat="server"></asp:TextBox><br />
            <asp:TextBox ID="HomePhone" runat="server"></asp:TextBox><br />
            <br />
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />&nbsp;</div>
    </form>
</body>
</html> 
It says the problem is with: PHP Code: dbread = dbcommunication.ExecuteReader() 
Can I get some advice on this please,
Jane

View 8 Replies View Related

Database To View Information Only

Dec 12, 2011

I am brand new to Access. I know a fair amount about excel. However I think Access may provide a better platform for what I am looking to do. With that being said i have some questions.

I am looking to create a database. However this database will very seldomly have new information added. Information may be updated here or there. Most of what i have researched uses access to create a database that will constantly have new info added.

What i am looking to do is to create a database that will have drop downs that merely link to other "databases" to view.

Example: I have have a database in excel that has one main interface. when you click on a cell it takes you to a new worksheet with multiple entries that fall under that group. and repeats itself. each cell on this page will is linked to another worksheet.

Lets say these groups are named; 1,2,3,4. Any time you click on on of these, it takes you to a new worksheet that has info for each group. Once on the new worksheet, it will give you the drop downs for these values and if one is selected it will take you to the new worksheet (show the new info) once again.

View 3 Replies View Related

General :: Grabbing Web Information Into Database?

May 17, 2015

I have two third-party library programs that allow you to type in an ISBN and the software searches, say Amazon, and grabs particular missing data: author, cover jpg and summary etc, and imports the info to the program. I'd like to replicate this process with Access. If I can type in an author, title or ISBN to Access, I'd like it to search Amazon to gather and input the missing data to my assigned fields. Is this possible? Or am I stuck to typing in the information separately.

View 10 Replies View Related

Extracting Information From Database Using A Form

Aug 10, 2012

I am totally new to access and i want to be able to extract information from my database using a form. Basically I am using the database to generate a bill of materials. I have a product that has many different options. SO I want ot select a checkbox on a form for a particular option and hten have that extract the correct data from the DB into a report or spreadsheet.

View 1 Replies View Related

Updating Information Via Email In Access Database

Sep 14, 2012

I would like to know if there is a way to update information in my Access database via e-mail.

I tried to do this, but when I collect from the e-mail, it creates a new entry in the database.

View 1 Replies View Related

Setup Database In Access That Collects Information

Sep 9, 2015

setup a data base in Access that collects information from the attached spreadsheet pictures from A1:FO26...Spreadsheet is macro enabled and updates automatically with data.have tried to setup Access data base but when Excel Tab updates it copies over the data that was last copied into Access.

View 14 Replies View Related

How Can I Create A Form Where You Can Enter Information And It Searches The Database.

Nov 11, 2004

Hello,

Does anyone know how I can create a form which asks for the name or lastname of the customer and does a search throuout the database and brings up all that customers informtation. And if their is more than one thats are the same you can switch through them untill you find the right one.

Thank you

View 2 Replies View Related

Forms :: How To Capture Windows Log On Information Of A User Using Database

Apr 8, 2014

I have several data entry forms in my DB. What I would like to do is capture the windows user name of the people adding records and changing records. How do I go about doing that? I was think of an on change event to a given field that would then pull the username and insert it in another field/object.

Lets say the an on change of me.cmbModel update txtUserName.

View 5 Replies View Related

Forms :: Print Preview Of Currently Entered Information Without Saving To Database First?

Nov 5, 2014

If you are using a form as a sort of user interface and you've got a user entering in information into the form, is there any way possible to print a preview of the currently entered form information without saving it to the database first?

I'm thinking a kind of validation thing. Like, "Click here and preview what you've entered. Sure this is what you want?" type of thing.

View 1 Replies View Related

Queries :: Creating Employee Database To Record Related Information?

May 9, 2013

i have been trying to create an employee database to record:

1. Name , Address
2. Telephone
3. Date of birth
4. employee ID#
5. Emergency contact -name, address, telephone
6. Photograph
7. Other pertinent information related to employees

So far I have incorporated the contacts database forms into my new database but I am unable to link the forms into one form that will incorporate all the information needed. Is there an existing employee database that I may edit to suit my purposes?

View 2 Replies View Related

Tables :: Import Some Information From Excel File Into Access Database

Feb 2, 2015

I'm trying import some information from excel file into Access Database but I need have imported information formatted in specific way.

Import file is looking like:

City - Week / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8
London / 3 / 1 / 4 / 5/ 5/ 9/ 1/ 3/ 4
Chicago / 2 / 1 / 4/ 8/ 3/ 3/ 2/ 1 / 5
Paris / 9 / 4/ 1/ 7/ 8/ 9 / 1 / 1 / 2

And i need table in Access looking more like

City / Week / Value
London / 1 / 3
London / 2 / 1
London / 3/ 4
London / 4 / 5

and so on for each city.Is there any option that this can be done within DB or It would need be some kind of macro to transfer this into other format?

View 1 Replies View Related

Publish Access Database With Windows Internet Information Services?

Mar 18, 2015

How to publish an Access db with Windows IIS but without Sharepoint

View 1 Replies View Related

Turning A Db Into A Webpage.

Nov 3, 2006

Hi,

Is there a good developer tool for turning an access db into a webpage?

Or should I go about it in a completely different way?

I want it to work just as it does, but I would like to have it on the www.

Fuga.

View 11 Replies View Related

Can You Add A Webpage To A Form?

Aug 23, 2004

I am just checking to see if anyone knows of a way (or a plugin download) that will allow me to create some sort of box that has a pre-specified website in it. It would be something like www.usps.gov, because sometimes our reps need to look something up, and it would be nice to have it right there. But the website that they will use has a login/password. So i will need some sort of "reset" button that will take them back to the main page in case it times out. Anyone know of anything?

View 5 Replies View Related

Help MDB Webpage Display

Dec 6, 2005

Hi,
I've currently got apache/asp up and running, I'm just wondering how I display an access database, or if there is any tutorials about to do this.

I should point out here, that ASP is an entirely new language to me, and I really haven't got a clue how to write in it, I do have a solid programming with software and such.

What I'm trying to avoid is, some kind of prefab made by "access" itself display, as the data in the database has to be displayed in a certain way.

If anyone could give me some advice on where to start on this adventure, I'd be glad to hear your comments and sudjestions, as I'm currently

View 2 Replies View Related

Forms :: Tracking Database - Update Information In Subforms Automatically From Main Form

Jul 6, 2013

I am attempting to create a patient tracking database for a clinic I work in and I am stuck at one small but major part.

I have a parent form called frm_Patient_index. On this form you can enter patient details such as personal details, observations ect. I need to create a lab request form for certain tests to be performed.

I want so that a button on the frm_patient_index form opens a subform where the relevent tests can be requested via tick boxes. Now here is my problem I have managed to create all of that except for the information to be entered into the frm_lab_request automatically and get SAVED to its corresponding table. It will not save for me.

I can get the information such as Badge Number, First Name, Surname and DOB to all enter into the fields automatically but getting them to save to the table is not happening.

View 3 Replies View Related

Populating Fields On A Webpage

May 24, 2005

I wasn't sure where I should have posted this question so please feel free to move it if necessary.

I am not even sure this is possible and I didn't know where to begin but these forums have always been extremely helpful.

What I would like to do is export data directly from Access (via form, table or query) and populate it directly to an existing, external webpage.

A little background. My company orders cars an for certain manufacturers, Toyota for example, we order via a secure website. All of the other manufacturers have their order directly transmitted to them. The orders for Toyota take 3-4 times longer to place and I was hoping to speed the process by exporting existing order information directly to the webpage.

Please let me know if it seems like I am smoking something and I will gladly step away from the pipe....=)

Thanks in advance,
Brian

View 4 Replies View Related

Forms And Subform On Webpage. HELP!

Jul 25, 2006

I am trying to put my form on the internet so that many users can access the form, that way I can keep one copy of the database and have everyone simply use the webform to edit it. I have converted my forms into webpages and all seems fine except my subforms dont show. Also, my comboboxes become text boxes. How can I stop this from happening? Once I have everything in order, how would I go about putting the forms on the internet for use? Is it possible to password protect the form, so only certain people can use it?

Any help would be GREATLY appreciated.

Thanks,
JetBlack

View 2 Replies View Related

Forms :: Hyperlink MailTo - Also Tries To Go To Webpage

Jan 7, 2014

MS Access 2000 - Quite simply, on a form I have an Email field and I have the "Is Hyperlink" property set to yes. In the On-Click event of this email field I use this single line of code below to open a new outlook (2007) email with the address already entered. Staff will be entering the email address themselves as part of the clients contact details Form.

Code:
FollowHyperlink "mailto: " & [Email]

This is all fine, however access also tracks [URL] .... onto the end of the email address and tries to also open a web page which obviously fails.

Is there something somewhere I can tweak that tells access to always only treat the text in this field as an email address, and when clicked open an email?

View 6 Replies View Related

Tables :: Connecting Access To A Webpage

May 7, 2013

In addition to my Intro to Access class, I am taking a Web Programming class, which has the same general assignment, but for Web pages, instead of an Access database; create at least 3 pages, 1 each for financial data, customer relations and product/service info.

I would like to create a small Access database connected to a Web page. I won't have a server, but I can run everything off a computer. I have a book that tells me the steps to do all this, but I'm supposed to install MS SQL Server (I chose to download MS SQL Express Server), and I can't get Access to talk to it. Among other things, I noticed that I could not stop SQL Server, nor could I start SQL Browser. I did enable TCP/IP (I think). I uninstalled the whole thing, thinking I could start from scratch.

How to publish my database on a Web page.

View 3 Replies View Related

General :: Setup A Hyperlink To A Webpage?

Feb 26, 2013

How would I setup a hyperlink to a web page, from Access?

View 1 Replies View Related

Forms :: Error While Loading A Webpage With Form

Jun 7, 2014

I try to open a web page with a form in access 2007. During the loading of the page it shows me 2 security error messages.

I tried to change the properties in Activex and especially the Silent property from No to Yes but this is not possible. In the next restart of the form restores the original settings.

When i open the same page with Internet Explorer it doesn't show any error. I have attached the database example to see exactly what happening.

View 9 Replies View Related

Modules & VBA :: HTML Field Names On A Webpage

Dec 31, 2013

I am using Access 2007 to update a page on an external website (amongst other things) from an Access form using VBA, but that page has recently changed. I have dealt with most of the issues around this, but there is still a problem that I cannot see how to resolve. Previously all the fields on the page were uniquely named, and so I was able to assign values from my form to them using

Code:
.document.all.item(fieldname).value=...

But now there appear to be identically named fields on the webpage and I cannot see how to differentiate between them in my code. I have attached a text file with the two relevant sections, containing the HTML for the two relevant sections on that page only (the code for the whole page runs to 8000+ lines and I can add the lot if really necessary) and as you will see the names for things like runs (name="result[][runs]") and wickets ("result[][wickets]") are the same in both sections. So how do I tell one from the other in my code?

Currently I have the following:

With objIE
.Visible = True
....
'1st innings - new HTML field names but duplicated on the webpage
.Document.all.Item("result[][runs]").value = nz(Me![runs_for#])
.Document.all.Item("result[][wickets]").value = nz(Me![wickets_for#])

[Code] .....

How can I differentiate between the HTML field names in the attached file as simply as possible in my code above?

View 2 Replies View Related

Forms :: Prevent Access To Open A Webpage?

Mar 19, 2013

I'm using "Application.FollowHyperlink" to send parameters to a remote application.

Each time i hit the enter button an 'After Update' event opens a web page.But i don't want the web page to be opened.

is there another method to send parameters over the web without opening a web page?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved