Hi. I have been trying to get a registration form for my website to work. On my testing server, it worked great. Once I ul it to my server, it does not work. I have check out other forums to get help, but nothing seems to work. At first, people thought it was a permissions problem, but that is not the case.
What happens is that when I submit the form to be inserted into my Access table, I receive an error saying it can not process the Execute on line 41, the line that would make the records go to my database.
Following is the code I have for the form. Please bear with me for the number of fields that I have in this form.
If anyone can offer suggestions, it would be much appreciated.
You can see this page in action at http://www.centreicehockey.com/register222.asp -
<!--#include file="Connections/hockeycards.asp" -->
-
<!--#include file="adovbs.inc"-->
-
<%
-
Dim objConn
-
Dim dbPath
-
Dim strSQL
-
Dim tableName
-
Dim rscustomers
-
Dim mytransfer
-
dbPath="/db/Hockeycards.mdb"
-
sConnection="Provider=Microsoft.Jet.OLEDB.4.0; " & _
-
"Data Source=" & Server.MapPath(dbPath) & ";"
-
Set objConn = Server.CreateObject("ADODB.Connection")
-
objConn.mode =3 '3="adModeReadWrite
-
LockType="adLockOptimistic"
-
Set rscustomers = Server.CreateObject("ADODB.Recordset")
-
tableName="CustomerList"
-
strSQL="SELECT * FROM CustomerList"
-
rscustomers.Open strSQL, sConnection
-
CursorType="adOpenKeyset"
-
CursorLocation="adUseServer"
-
-
FirstName = Request.Form("FirstName")
-
LastName =Request.Form("LastName")
-
Uname=Request.Form("Uname")
-
Pass=Request.Form("Pass")
-
Email=Request.Form("Email")
-
PhoneNumber=Request.Form("PhoneNumber")
-
FavoriteNHLPlayer=Request.Form("FavoriteNHLPlayer")
-
BillingAddress=Request.Form("BillingAddress")
-
BillingCity=Request.Form("BillingCity")
-
BillingProvince=Request.Form("BillingProvince")
-
BillingPostalCode=Request.Form("BillingPostalCode")
-
ShippingAddress=Request.Form("ShippingAddress")
-
ShippingCity=Request.Form("ShippingCity")
-
ShippingProvince=Request.Form("ShippingProvince")
-
ShippingPostalCode=Request.Form("ShippingPostalCode")
-
Newsletter=Request.Form("Newsletter")
-
If (Request.Form("Submit") <>"") Then
-
mytransfer="INSERT INTO CustomerList VALUES ('" & _
-
FirstName & "', '" & _
-
LastName &"', '" & Uname & "', '" & _
-
Pass & "', '" & Email & "', '" & _
-
PhoneNumber & "', '" & FavoriteNHLPlayer & "', '" & _
-
ShippingAddress & "', '" & ShippingCity & "', '" & _
-
ShippingProvince & "', '" & ShippingPostalCode & "', '" & _
-
BillingAddress & "', '" & BillingCity & "', '" & _
-
BillingProvince & "', '" & BillingPostalCode & "', '" & _
-
Newsletter & "') "
-
Set rscustomers.Execute(mytransfer)
-
rscustomers.Close
-
End If
-
-
Set rscustomers = Nothing
-
Set objConn = Nothing
-
-
%>
-
Thanks in advance to any replies.
5 2837
Nico,
Thanks for replying.
Boy, some of those links spooked me. Why not to use Access? Well, too late for that now...
Anyway, nothing in any of those links seemed to fix the problem. I tried a few other things, to no avail.
I have settled, for now, on an email form. I will manually enter the info into the database for now.
I think it's obvious that this is not the preferred method, but it will work 'til I get it working right.
Any other thoughts??
Hard to diagnose from a distance, but here some links about using Access as a web enabled database: http://members.optushome.com.au/anandasim/asp.htm#howdo www.brinkster.com
Don't use Access on the web: http://www.aspemporium.com/aspEmpori...seMSAccess.asp
In general I would check the required fields from the table before starting an INSERT.
Nic;o)
Checkout MS Access 2007 it has an email "datacollect" possibility and can store data on a SharePoint server.
Nic;o)
HI.
I looked into it. Yes, that is an option, but from my understanding, I can only do this if I send the email to people. The idea is that users go to a page on my site to register. Is there a way to make the Data collect work in this way?
Checkout MS Access 2007 it has an email "datacollect" possibility and can store data on a SharePoint server.
Nic;o)
I'm no Sharepoint expert, but I would look into the possibilities of SharePoint.
It's specially designed for data exchange and easily linked to from Access.
Nic;o)
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Peter Frost |
last post by:
Please help
I don't know if this is possible but what I would really like to do is
to use On Error Goto to capture the code that is being executed when
an error occurs.
Any help would be much...
|
by: 2BaCook |
last post by:
Hi, I have an Access database that I am creating a java front end to.
I am trying to insert a record into a table and get a problem whenever
I try to insert into my "Number" column.
Here is my...
|
by: Squirrel |
last post by:
I have a command button on a subform to delete a record.
The only statement in the subroutine is:
DoCmd.RunCommand acCmdDeleteRecord
The subform's recordsource is "select * from tblVisit order...
|
by: jannordgreen |
last post by:
I am using Winxp and Ms Access 2003.
I get this error message:
error 3137, Missing semicolon (;) at end of SQL statement
when I run this code:
Dim I As Integer
For I = 0 To...
|
by: kosta |
last post by:
hello! one of my forms communicates with a database, and is
supposed to add a row to a table using an Insert
statement... however, I get a 'oledb - syntax error'
exception... I have double...
|
by: RG |
last post by:
OleDbCommand.Prepare error: Size of parameter (VB.NET 2003)
I need to do a SQL INSERT statement into an Access table, and I’d like to
use the exact technique described in the Help file example...
|
by: Charles Wilt |
last post by:
I have a IBM iSeries (aka AS-400) running v5r3 of OS/400 that I access
via a linked server from SQL Server 2000.
The following select works fine:
select * from...
|
by: rn5a |
last post by:
During registration, users are supposed to enter the following
details: First Name, Last Name, EMail, UserName, Password, Confirm
Password, Address, City, State, Country, Zip & Phone Number. I am...
|
by: teddysnips |
last post by:
I have an application that does some data manipulation of some tables
to format a table for a report.
1. First I open the table that gives me the parameters for some later
queries
strSQL =...
|
by: Dave |
last post by:
I am getting the error above intermittantly with an ASP 3.0 page using an MS
Access 2003 database.
I have searched Google extensively and found the following possible causes
for this error:
A...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |