![]() Topic awaiting preservation: inserting data into database (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: KY |
![]() I'm trying to create an insert page for a homework database. code: <!--#include file="dsn.asp"-->
|
Bipolar (III) Inmate From: |
![]() on first inspection, I suspect that the error's in the sql statement - the database is probably throwing a fit at you trying to insert text without quoted identifiers |
Bipolar (III) Inmate From: KY |
![]() OK, I did that, now I'm getting another error |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
![]() I'm not a coder, but wouldn't the " become \" |
Bipolar (III) Inmate From: KY |
![]() What do you mean? do you mean something like this '" &teacher& \','\ |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
![]() (" & teacher & "," & subject & "," & assingment & "," & mdy & ")" |
Bipolar (III) Inmate From: |
![]() I think that what it's trying to tell you that it doesn't like doing an insert when you're trying to open a recordset |
Bipolar (III) Inmate From: KY |
![]() Working great now. Didn't know i didn't need the recordset object for inserting. Is this true for updating and deleting as well? |
Bipolar (III) Inmate From: |
![]() absolutely right about the update and delete there |
Bipolar (III) Inmate From: KY |
![]() Alright, I having trouble figuring out the whole "'s layout. I have this line code: homework.open "select * from jhomework where '" & tag & "' = '" & tag2 & "'", Conn, 3, 1
|
Bipolar (III) Inmate From: |
![]() try: |