Quote:
Originally Posted by starsearch
set cAddDetail = Server.CreateObject("ADOBE.Command")
|
This is your problem, assuming this is also the code in your application and not a typographical error.
Adobe is great with Photoshop and now Flash, but they don't give a rat's behind about your database. You want ADODB.SomeObject. DB as in database.
Also you probably don't want a timeout value of zero. You can set something like 180 seconds if you want to avoid timeouts in general, but zero can hang your code. This is just a general tip that will help you avoid trouble in the future, it won't solve today's problem.
Also, the way you're doing things with dynamic SQL, if the user types ' or " into the description field ( Joey's Birthday Party ) it won't work. You need to either escape the quotes ( you could use a string replace function to turn " into Chr$(34) ), or the better solution is to use a stored procedure. Even if this is an Access database, you can set up an INSERT query and save it under the queries tab of your database, and in code refer to it as a proc. This way you can just pass the value without having to massage it first.
|