Topic awaiting preservation: inserting data into database (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: KY |
posted 07-23-2002 02:26
I'm trying to create an insert page for a homework database. code: <!--#include file="dsn.asp"-->
|
Bipolar (III) Inmate From: |
posted 07-23-2002 08:33
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 |
posted 07-23-2002 17:39
OK, I did that, now I'm getting another error |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 07-24-2002 02:51
I'm not a coder, but wouldn't the " become \" |
Bipolar (III) Inmate From: KY |
posted 07-24-2002 03:43
What do you mean? do you mean something like this '" &teacher& \','\ |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 07-24-2002 04:05
(" & teacher & "," & subject & "," & assingment & "," & mdy & ")" |
Bipolar (III) Inmate From: |
posted 07-24-2002 09:38
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 |
posted 07-24-2002 19:00
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: |
posted 07-25-2002 07:45
absolutely right about the update and delete there |
Bipolar (III) Inmate From: KY |
posted 07-26-2002 15:40
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: |
posted 07-29-2002 10:46
try: |