473,657 Members | 2,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Additional blank record inserted ?

Hi,

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

vUser = request.form("u ser") '(UserID = PK in table)
vPass = request.form("p ass")
vEmail = request.form("e mail")

uSQL = "INSERT OrderStatusAcce ss (UserID, Password, Email, CustomerID)
values ('" & vUser & "', '" & vPass & "', '" & vEmail & "', '" &
session("custom er") & "');"

adoDataConn.Exe cute (uSQL)

Why does this insert the single record plus a blank one ?
Thanks
David
Jul 19 '05 #1
4 1767
What makes you think that's what's happening? Where are you seeing this
blank record? What kind of database?

Ray at work

"David" <da***@scene-double.co.uk> wrote in message
news:c1******** *************** **@posting.goog le.com...
Hi,

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

vUser = request.form("u ser") '(UserID = PK in table)
vPass = request.form("p ass")
vEmail = request.form("e mail")

uSQL = "INSERT OrderStatusAcce ss (UserID, Password, Email, CustomerID)
values ('" & vUser & "', '" & vPass & "', '" & vEmail & "', '" &
session("custom er") & "');"

adoDataConn.Exe cute (uSQL)

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

Jul 19 '05 #2
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" <da***@scene-double.co.uk> wrote in message
news:c1******** *************** **@posting.goog le.com...
Hi,

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

vUser = request.form("u ser") '(UserID = PK in table)
vPass = request.form("p ass")
vEmail = request.form("e mail")

uSQL = "INSERT OrderStatusAcce ss (UserID, Password, Email, CustomerID)
values ('" & vUser & "', '" & vPass & "', '" & vEmail & "', '" &
session("custom er") & "');"

adoDataConn.Exe cute (uSQL)

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

Jul 19 '05 #3

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!
Jul 19 '05 #4

"David Gordon" <da***@scene-double.co.uk> wrote in message
news:eH******** ********@tk2msf tngp13.phx.gbl. ..

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
Jul 19 '05 #5

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

Similar topics

6
4272
by: Ruben | last post by:
Hello. I am trying to read a small text file using the readline statement. I can only read the first 2 records from the file. It stops at the blank lines or at lines with only spaces. I have a while statement checking for an empty string "" which I understand represents an EOF in Python. The text file has some blank lines with spaces and other with blanks. Thanks a lot.
3
3818
by: Miran Kopmajer | last post by:
I have a problem with blank line inserted. Please help! This is how my SQL report looks like ACCEPT vf CHAR PROMPT "Vrsta fakture: " ACCEPT fk CHAR PROMPT "Faktura: " SET PAGES 72 set NEWPAGE 1
4
65630
by: YFS DBA | last post by:
How do I use VBA to insert a *new* record into a subform? I have a master form with client information, and a sub form with billing information. I want to click on a button ("Add Data") and have a record inserted into the subform's table, with date created and some information from the main table inserted into the proper fields in the subform. After the record is inserted, the data entry operator enters a Date Of Service and a billing...
2
3827
by: M Fisher | last post by:
Is there a way to get the autonumber of a newly inserted record? I am working with unbound forms, and using an append query to insert a record into a table. I am then using a select query that returns the max ID (the autonumber field) of the table. This gives me the correct number. However, could this go wrong in a multi-user environment. I insert a record, and say it gets ID 10, but before (even thoug it is a split second) I read the...
20
2131
by: Bryan | last post by:
hello all... im trying to add a record to an sql db on ms sql server 2000, using vb.net. seems to be working.. except for one thing, one of the columns in the database is a bit datatype, and though i get no syntax errors when compiling, i get an error indicated that the data would be truncated. the field is login_status. ive tried in quotes and not, giving it an integer variable with the number 1
4
3152
by: Mal Reeve | last post by:
Hello, I have a report that has only 2 levels of grouping. The detail section is simply 1 large block for a memo field. I am finding that on some occasions the report errors and generates hundreds (perhaps even an infinite loop...I have to break the system to stop the report generating) of pages. While I'm not 100% I think this may have something to do with the detail
4
2208
by: sparks | last post by:
I am trying to fix a database that someone did about 4 yrs ago in access97. The main table just contains demographics and is on the main form of the database. It has a subform on a tab that contains the other information. it is set 1 to 1 in the relationships. simplify if I can
9
2471
by: =?Utf-8?B?UHJhdmlu?= | last post by:
We are using .net Framework 1.1 We are having one page on which we are using this Grid component. From this page we open a popup for adding new record as well as for editing an existing record (For Edit we want to pass the ID of that particular row) And when user clicks on 'SAVE' button in popup window, those changes need to be reflected onto the parent (into the Grid). This happens by refreshing the parent page. But in that case all...
10
12691
by: MLH | last post by:
Suppose, in a multi-user environment, you have append query SQL in a VBA procedure that looks like INSERT INTO MyTable... and the next line reads MyVar=DMax("","MyTable... You can never be certain that MyVar will be set to the key-field value that was created when the Append query ran. Now, there are other ways to do it - I know - that will ensure you 'nab' the correct record. But I was wondering
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.