ASP Access databsae error "Operation was canceled."

I am making a simple ASP script so two people can enter in a couple of fields on info into a very simple access databsae from many locations. I have 8 fields that data is entered into, and passed into an asp script to write to the DB.

i get this error, which i have never seen before

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4E)
Operation was canceled.
/write.asp, line 37

Line 37 of write.asp is, asql, "DSN=data"

My "asql" is

asql="INSERT INTO [tblairport] (ode, ort, ddress, hone, ax, ebsite, one, erminals) VALUES ('"&ode&"','"&ort&"','"&ddress&"','"&hone&"','"&ax&"','"&ebsite&"','"&ime_zone&"','"&erminals&"');"

Thank you

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you have the ODBC settings correct in the control panel for "data"? Does the connection there test good? Are the drivers the correct drivers? Also, you could try doing a DSNLess connection.
David H.H.LeeCommented:
Check your details error at this site :
CKudrnaAuthor Commented:
The database was used successfully in the past, and i changed the tables around for this new simple task i wanted to accomplish. The database name is the same, and the DSN connnection still exists.

I can't find what this error means, anyone really know? Is it a DSN problem or a ASP scripting problem?

The database file is in place correctly as per the DSN entry.
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

David H.H.LeeCommented:
CKudrna ,
View all the possibility error (0x80040E4E) may arrise based on the article that i shown to you in my first comments.
Can you first establish the connection object with DSN and try like asql, connectionName
CKudrnaAuthor Commented:
Yeah it is not in that list, sorry

there is no underscore, and yes, i will use DSN

this connection has worked fine in the past.

increasing points to 300

if anyone can let me know how to fix it without having to be at the server ill give you 500
David H.H.LeeCommented:
I suggest you use DSN-less connection method rather than DSN method.
David H.H.LeeCommented:
CKudrna ,
If you prefer use DSN, i would like you to make a simple a select statement to check wheter you can use the DSN method or not(maybe some setting problems?).

asql="select * from tblairport" asql, "DSN=data;"

David H.H.LeeCommented:
i think this the mistake : asql, "DSN=data;"

Change to
Set objConnection= Server.CreateObject("ADODB.Connection") "DSN=data;" asql, objConnection
CKudrnaAuthor Commented:
Changed to
Set objConnection= Server.CreateObject("ADODB.Connection") "DSN=data;" asql, objConnection

Still get the same error

I would like to use DSN because i just want this simple thing working, and i am thousands of miles away form the server, so i can't be setting up other connections remotely

any way i can point to this database file as in ( to edit it?


increasing the points again
David H.H.LeeCommented:
CKudrna ,
DSN-less connection is the easiest way to get it work around in asp. less configuration. If you prefer DSN connection, can you state out more details about it? Maybe your problems is different with others?
Hi CKudrna,
the query you have defined in asql is a insert query, it will not return any recodset thats why you are getting the error. You can do this in following way:

Set objConn = Server.CreateObject("ADODB.Connection")

strConnectionString = "Your connection string"

objConn.Open strConnectionString

objConn.Execute asql

Hope this will work without any error.

If you want to test your connection string then open a standard exe project in VB add a component of "Microsoft ADO 6.0" in your project and add the object in your form, right click on the object and open the property page, click on the "Use Connection String" radio button and click on "Build" command button, provide your DSN name and user id & password (if any) then click on test connection, if it succeed then click on "OK" button you will see the connection string in the text box, use this connection string in your ASP pages.

Happy Programmin!!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David H.H.LeeCommented:
Please read this article too :
You may close/refund this thread if you found the solutions
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.