|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
insert with a autonumber row
var SQLString = "INSERT INTO table VALUES( '' ,'" + Request.Form("name") + "','"
+ strAlpha + "','', '" + Request.Form("email") + "', '" + Request.Form("userid") + "')"; dbConnection.Execute(SQLString); This is jscript inserting into access2000. My table looks like this: id (autonumber) name date userid Its the first field that causing my problems, I get a data type mismatch error. How do I insert with an auto incremented field?! |
|
#2
|
|||
|
|||
|
its an autonumber field. you don't need to insert anything in that field. take the leading comma out, and just insert the four items, Name, date, email, and userID.
|
|
#3
|
|||
|
|||
|
try this. this might resolve your issue
var SQLString = "INSERT INTO table (name, date, email, userid) VALUES( '" & Request.Form("name") & "', '" & strAlpha & "','', '" & Request.Form("email") & "', '" & Request.Form("userid") & "')";
__________________
Rahul Small things lead to perfection and perfection is not a small thing. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > insert with a autonumber row |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|