473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ms access web how-to

Hello.

I am hoping to get some help here about connecting, directly or not,
an Access database with a web site. I have done some research but have
not come up with much of use.

I am wondering what would be the best the way to collect information
from a web form and put this information into an Access database? Just
brain storming I have come up with a few ideas (but I do not know how
to go about getting the job done):

- having the data be sent directly to the Access database.
- having the data be send to a berkeley or mysql database and then
transferring.
- having the data be sent by email to outlook, and from there connect
it to Access.

Can you please help me figure out which is the best way to get this
done and if possible provide me with some information/guidelines as to
what I should do?

[The server where the form will be located is hosted on a remote
server, not the computer with the Access db].

Cheers...
Nov 12 '05 #1
1 2199
Hi Mora,

You have to upload the mdb to the website. From there you will have two
pages, one that holds the form and fields, the second that holds the code to
connect to your mdb. Then execute an "INSERT" sql statement to get the data
into a table. If you are not familiar with any of that, you should look
into the ADO connection object. It would accomplish all of this easily if
you can use ASP or vbscript on the second page. It is important to keep in
mind that the code written on the second page runs only on the server and is
never shown to the user by means of using special tags that specify to
"runat" the server.

This example will work if your isp supports Microsoft ASP pages like we
do...

First page: (firstpage.asp)
<html>
<body>
<p>Please fill in this data....</p>
<form name="myform" method="post" action="secondpage.asp">
<input name="fldFirstName" Value="">
<input name="fldLastName" Value="">
</form>
</body>
</html>

Second page: (secondpage.asp)
<%
dim cn
Set cnn1 = Server.CreateObject("ADODB.Connection")
cnn1.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath("/somesubfolder/somedb.mdb") & ";Persist Security Info=False"
cnn1.execute "INSERT Into myTable FirstName, LastName VALUES(" &
request.form("fldFirstName") & ", " & request.form("fldLastName") & ")"
cnn.close
set cnn = nothing
response.write "<html><body><p>Thanks for adding that
data...</p></body></html>"
%>

Then you could periodically download the table and copy/paste the contents.
If you get even more crafty with ASP and ADO, you could start having it
email you an ADO recordset (or xml file) that you could open with an access
form and import using some custom code. The tools are all there, it's just
a matter of learning! Let me know if you need any more help with that.

Good Luck!!

Jerry Boone
je***@antech.biz.nospam (remove .nospam before sending)
President - Analytical Technologies, Inc.
ASP, ASP.NET, SQL Server Hosting
http://www.antech.biz
"mora" <mo******@hotmail.com> wrote in message
news:4f**************************@posting.google.c om...
Hello.

I am hoping to get some help here about connecting, directly or not,
an Access database with a web site. I have done some research but have
not come up with much of use.

I am wondering what would be the best the way to collect information
from a web form and put this information into an Access database? Just
brain storming I have come up with a few ideas (but I do not know how
to go about getting the job done):

- having the data be sent directly to the Access database.
- having the data be send to a berkeley or mysql database and then
transferring.
- having the data be sent by email to outlook, and from there connect
it to Access.

Can you please help me figure out which is the best way to get this
done and if possible provide me with some information/guidelines as to
what I should do?

[The server where the form will be located is hosted on a remote
server, not the computer with the Access db].

Cheers...

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rich | last post by:
I am using Excel 97 and Access 97. I have two memory variables that are doubles in Access. I did the following math in Access. $28,721,211.86 / $4,263,630,151.41 In Access the answer is...
2
by: DS | last post by:
Hi, Has anybody used Access Runtime? Where do you get it? How much is it? Also can you hide all menu bars etc. with it? Thanks DS
8
by: ablyplus | last post by:
Hi, I am trying to open MS Access DB with c# like follows... OleDbConnection thisConnection = new OleDbConnection( @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=" + @"..\..\hren.mdb;"...
1
by: Lam | last post by:
Hi does any one know how can I access the Access Database in C# aspx page? if the database is multi-user, how can I include the use name and password? Thanks
2
by: Sehboo | last post by:
I am using access interop (object 10.0) in my application. It works fine on my machine but when I test it on some machine which has an old version of access then it fails. This is how I am...
70
by: lgbjr | last post by:
Hello All, I've been developing a VB.NET app that requires the use of a DB. Up to now, I've been using Access. It's a bit slow, but everything works. I'm at a point now where I need to decide if...
7
by: DanZaMan | last post by:
Just a query about how clever access is, I'm using access 97. When using a "split" database with a separate front-end and with the data file on a separate server on the network how does access...
0
by: hanseljose | last post by:
How i can access a MS access database which is located in FTP server, usin vb codes. like opendatabase("pathname') If anybody knows pls reply me
2
by: gimme_this_gimme_that | last post by:
What is the best VBA/Access book for an experienced VBA programmer? I'd prefer something that is less than 350 pages. Thanks.
1
by: shayvillere | last post by:
I have a corrupt record that disappears after a compact, but reappears several days later. This is on a widely distributed Access 2003 application that is used by about 100 users. The database...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.