RS causing strange error

B

Bill

For some reason,, the following recordset rs("w2itd1") will run fine
when I'm looping it out on a page, but when I have it inside a sql
statement, I get errors.

for example:

sql = " Insert into table (title) values ('"& rs("w2itd1") &"') "

This will give me an error. The contents of this rs is a book title.
Oddly enough, however, if I enter any other of the rs("fieldnames")
that I have, in exactly the same fashion, I have no problem. There
just seems to be an issue with the text coming thorugh. Can someone
indicate what the problem could be?

Thanks,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top