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

How to insert two tables using aspsmart upload

1
I have problem in inserting data to two databases. One table has successfull insert but another one fail. Error : syntax error in insert into statement. I'm very sure that it is not error in syntax but are there other syntax must we use when we use <form enctype="multipart/form-data">. Because it can't recognise request.form.

Please help me...thank you...
Aug 16 '07 #1
1 1300
jhardman
3,406 Expert 2GB
I have never used ASPSmart upload, but can you print your "insert into" statement before executing? Sometimes this clarifies where the problem is.

You say you believe that using this particular enctype might be confusing your script. You only need enctype="multipart/form-data" if you are uploading whole binary files. Is this something you need?

Third, you say the first page inserts satisfactorily, but the second fails. Are these done by two different scripts one after the other, or is this one long concatenated script? If you have these two inserts on two different script pages then it is likely the form data is posted to the first page and not the second. Let me know if this helps.

Jared
Aug 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Newbee Adam | last post by:
how to save textbox values to 2 tables using sqladapter I am new with this. Do I need to ADO.net? what is the simplist correct way? or can I write a query in my vb.net form insert table...
1
by: donhyams | last post by:
It seems like at one time I knew how to do this, but right now I'm drawing a blank. I know there has to be an easier way to link tables using more than one field. Heres a simplfication of the...
0
by: Rabothe | last post by:
I have created an excel report and i have visual basic macros running. Now i want to insert borders using VB macros. How do i do that? If the report returns 5 row then the border should be around...
23
nehashri
by: nehashri | last post by:
hi i am designing a database using Ms Access and ASP. i have 3 tables in access namely 'PERSONAL', other as 'POLICY' and 3rd one is named as 'STAFF'. in the contact table i have ID, Name, Children...
1
by: Lawrence Pereira | last post by:
Can any one help me in inserting any date into the table using insert command because when i m trying to insert date using insert command the query executes but the date is totally wrong if i am...
3
by: simple simon | last post by:
How would I insert into multiple related tables using a table valued parameter? Is there any way to do this without using a WHILE loop? I know how to insert from a table valued parameter into one...
2
by: buterfly0707 | last post by:
hi all.. i have 3 tables called itemMaster,ItemWh,whWiseItem(table names i took just for example). here i want to retrieve data from all the 3 tables. table details itemMaster having details of...
1
by: Netcrawlerrr | last post by:
Hi there, I have a tricky one.....(For me that is.) I am trying to move data into a temp table, but the date comes from 2 tables using the innerjoin method. Here is the code I have so far: ...
7
by: ncsthbell | last post by:
I am importing a lot of data from spreadsheets and 'import error' tables are being created. I need to be able to delete these tables using vba code in the database. Also, each of the tables are...
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:
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: 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...
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...
0
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...

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.