473,386 Members | 1,630 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,386 software developers and data experts.

submitted data not updated promptly with ms access


Please could you assist me on this query. i have to

complete this task the earliest time. i am not that

experienced in asp, but i manage more and less to

program basic functionalities....

i have included a form in my application. on

submission, i store the form typed data in an MS

ACCESS DATABASE. the number of inputs in the form is

not constant and the user is expected to alter his

choice. therefore, before writing to the database, i

first delete the previous data linked to that user,

then i write the new submitted data.

this basic op. works fine. however, if i change the

form content quickly, i see that the newly data is

not included. generally, i have found 15-20 seconds

enough time between 2 submissions to be both stored

in the database. i am using ISS on my local machine,

so i have not deployed it on a common public server.

the above inconvenient really annoys me, just

imagine the inconevenience that occurs especially

with high number of concurent users ....

i don't know if there a problem with my code, or

access...
i am attaching below my code

many thanks

===========================
<%
option explicit
%>

<html>
<head>
<title> Submit user selectiosn to Database</title>
<link rel="Stylesheet" href="Stylesheet.css"

type="text/css">
</head>

<body>
<h1>Submit the Changes to the Web Site Database</h1>

<%
Dim dbname, cnpath, connStr, sql, connect, rs
dbname = "userDb"
cnpath = "DBQ=" + Server.mappath(dbname)
connStr = "DRIVER={Microsoft Access Driver (*.mdb)};

" + cnpath

on error resume next
set connect =

Server.CreateObject("ADODB.Connection")
connect.open(connStr)
set rs = Server.CreateObject("ADODB.Recordset")

%>


<%
Dim N,Title
N=Session("TitlesNum")

sql = "Delete * from tbl_user where

tbl_user.Email ='" & Session("Email") & "'"
rs.open sql, connect,3,3

'rs.Close
'connect.Close
'connect.open(connStr)

sql = "Select * from tbl_user where tbl_user.Email

='" & Session("Email") & "'"
rs.open sql, connect,3,3
for i=1 To N
rs.AddNew
rs("Title") = request.form(Title)
rs.update
response.Write("update done ....")
NEXT

response.write("<P>Your preferences are now

stored")
rs.close
set rs=nothing
set connect=nothing
%>

<p><center><font size="5">
<a href="Home.asp">Home</a>

</body>
</html>

Nov 13 '05 #1
1 1342
tony wrote:
Please could you assist me on this query. i have to


Already answered over in .db

Please do not multipost tony. This is definitely a database-related
question so .asp.db was the perfect group in which to post it. Posting it
here in .general as well did not increase your chances of getting an answer
(most of us
subscribe to both groups). On the contrary, if somebody had taken his time
to answer it here, only to find that it was already resolved in the other
group, that person may have been annoyed enough to ignore any future posts
from you, thereby decreasing your chances of getting help in the future.

There are times when you will not be sure which group is most appropriate
(again, this was not one of them), and you will want to post a question to
both groups. In that situation, you should use the cross-posting technique,
rather than posting the same message multiple times. To crosspost, put
a semicolon-delimited* list of the newsgroups to which you wish to post in
the To: header of your post and post it once. It, and any replies to it,
will appear in all the newsgroups in your list. So, if I reply in .asp.db,
my reply will also appear here in .asp.general.

* ... or whatever delimiter is recognized by your news client

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Nov 13 '05 #2

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

Similar topics

32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
1
by: tony | last post by:
Please could you assist me on this query. i have to complete this task the earliest time. i am not that experienced in asp, but i manage more and less to program basic functionalities.... ...
1
by: Anna Warloe | last post by:
This might be a dumb question, but I am pretty new to Access.... I am trying to write code in Access to take river forecasts which are delivered as attachments in emails and append the data into...
6
by: Innuendo | last post by:
Hello, I'm not a specialist with Access - so I hope that you can give me some input. I've to import xml data (about 15 different data fields) into an access-database each night. As scripting...
7
by: mark | last post by:
Please excuse this blatant attempt at advertising. I hope you find this software both interesting and useful. http://www.caddproductivity.com/dataswap.htm Data Swap The Data Swap program...
4
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
2
by: Robert Smith jr. | last post by:
Hello, Please pardon my newbie question ... I am building an ASP.NET page that displays a recordset with a Delete statement enabled (this all works fine). I want to Insert the current row...
3
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
2
by: john_aspinall | last post by:
For a kick off sorry if this is the wrong forum, Ill go on the Access one if Im not on the right board! Anyways, Ive got a problem and am not sure if its going to be solved programatically using...
7
by: L. Ximenes | last post by:
Hello everyone, I know how to parse data from an XML file with Javascript; but what if I would like to parse data from a user-submitted XML file via the " <input type='file'"? Would it be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.