Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Additional blank record inserted ?

Reply
Thread Tools

Additional blank record inserted ?

 
 
David
Guest
Posts: n/a
 
      01-07-2004
Hi,

I have the following code which adds a record to a table:

vUser = request.form("user") '(UserID = PK in table)
vPass = request.form("pass")
vEmail = request.form("email")

uSQL = "INSERT OrderStatusAccess (UserID, Password, Email, CustomerID)
values ('" & vUser & "', '" & vPass & "', '" & vEmail & "', '" &
session("customer") & "');"

adoDataConn.Execute (uSQL)

Why does this insert the single record plus a blank one ?


Thanks


David
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      01-07-2004
What makes you think that's what's happening? Where are you seeing this
blank record? What kind of database?

Ray at work

"David" <> wrote in message
news: m...
> Hi,
>
> I have the following code which adds a record to a table:
>
> vUser = request.form("user") '(UserID = PK in table)
> vPass = request.form("pass")
> vEmail = request.form("email")
>
> uSQL = "INSERT OrderStatusAccess (UserID, Password, Email, CustomerID)
> values ('" & vUser & "', '" & vPass & "', '" & vEmail & "', '" &
> session("customer") & "');"
>
> adoDataConn.Execute (uSQL)
>
> Why does this insert the single record plus a blank one ?
>
>
> Thanks
>
>
> David



 
Reply With Quote
 
 
 
 
William Morris
Guest
Posts: n/a
 
      01-07-2004
Based on what you posted it's impossible to say with any reliability. The
SQL appears to be fine. Is there perhaps a trigger on the table that would
insert another record based on some arbitrary condition? And, how do you
know there's an extra record?


"David" <> wrote in message
news: m...
> Hi,
>
> I have the following code which adds a record to a table:
>
> vUser = request.form("user") '(UserID = PK in table)
> vPass = request.form("pass")
> vEmail = request.form("email")
>
> uSQL = "INSERT OrderStatusAccess (UserID, Password, Email, CustomerID)
> values ('" & vUser & "', '" & vPass & "', '" & vEmail & "', '" &
> session("customer") & "');"
>
> adoDataConn.Execute (uSQL)
>
> Why does this insert the single record plus a blank one ?
>
>
> Thanks
>
>
> David



 
Reply With Quote
 
David Gordon
Guest
Posts: n/a
 
      01-07-2004

Hi Ray,

I am running an MS Access front end app with tables in a MySQL DB on our
Linux Server, which are import-linked back into MS Access. The ASP
updates the MySQL DB.

A/ I can view the records in a form in MS Access which shows all users
under a specific customer.

B/ When I view other pages in my asp app, they list the users and a
blank record ?


David


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      01-07-2004

"David Gordon" <> wrote in message
news:eH3%...
>
> Hi Ray,
>
> I am running an MS Access front end app with tables in a MySQL DB on our
> Linux Server, which are import-linked back into MS Access. The ASP
> updates the MySQL DB.
>
> A/ I can view the records in a form in MS Access which shows all users
> under a specific customer.


Doesn't Access often leave a blank row so you have a place to start typing
if you want to add a record?

>
> B/ When I view other pages in my asp app, they list the users and a
> blank record ?


That could be coming in from some flaw in coding or something, like
forgetting that arrays are zero based or something along those lines.

Ray at work


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ObjectDataSource problem with return newly inserted record id fig000 ASP .Net 0 09-06-2008 10:32 PM
Display goes blank when thumb drive is inserted Dennis Q. Wilson Computer Support 4 02-24-2008 11:11 AM
One more LinqDataSource problem ... Get inserted record ID shapper ASP .Net 0 02-12-2008 04:02 PM
how to make message appear after record is inserted? Jan ASP .Net 5 03-08-2007 07:37 AM
Retrieving the value of the identity field of a newly inserted record? Craig ASP .Net 1 01-25-2006 02:21 AM



Advertisments