AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Apr 4, 2002, 04:56   #1
Младенец
 
Join Date: Mar 2002
Location: Yerevan
Posts: 7
Rep Power: 0
Reputation: 10
Question Microsoft Jet engine trouble

Please help me if you can!

My ASP database connection doesn't work properly.
table name is "guestbook"
fields are ID, firstName, lastName, e-mail, URL

Dim connect, record
Set con=Server.CreateObject("ADODB.connection")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("guests.mdb")
Set record=Server.CreateObject("ADODB.Recordset")
record.Open "SELECT * FROM guestbook", con
record.AddNew
record("firstName")=firstName
record("lastName")=lastName
record("e-mail")=Request.Form("e-mail")
record("URL")=Request.Form("URL")
record.Update
record.Close
con.Close

IIS gives something like this: Microsoft Jet engine can not find the 'URL' object, check if this object exists or may be its path is incorrect!

Help me if you can !
__________________
Ամեն ինչ կախվածա նրանից թե ինչքան ես դու...
ButtHead is offline   Reply With Quote Quote selected
Old Apr 4, 2002, 13:44   #2
Бакалавр
 
Join Date: Mar 2002
Location: Detroit, MI, USA
Posts: 482
Rep Power: 7
Reputation: 10
Post

I dont' know exactly, what's going on in your case, but, there is a thing, which confuses me (maybe, that's the source of error)
You're executing SELECT statement, which (IMHO), returns read-only recordset. After that, you're trying to modify and update result of SELECT execution. I'm not sure, if Microsoft JET engine supports it or no.
Anyhow, at least it is direction to dig in.
I hope, this will help.

Regards,
Hovik
__________________
Hovhannes Tumanyan,
CISSP
Tumanyan is offline   Reply With Quote Quote selected
Old Apr 5, 2002, 01:24   #3
Младенец
 
Join Date: Mar 2002
Location: Yerevan
Posts: 7
Rep Power: 0
Reputation: 10
Talking

Dear Tumanyan

That wasn't the exact code i was using - please see this one -

Dim con, record

Set con=Server.CreateObject("ADODB.connection")

con.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("guests.mdb")

Set record=Server.CreateObject("ADODB.Recordset")

record.Open "SELECT * FROM guestbook", con

record.Close
con.Close

see this one doesn't do anything smart, but error message is the same: that microsoft jet engine cannot find the 'URL' or whatever object that is the last field in my guestbook table!

I'm running XP - maybe here what's the problem?
__________________
Ամեն ինչ կախվածա նրանից թե ինչքան ես դու...
ButtHead is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:40.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link