Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Errrr someone help me out here?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tteal
Junior Member

USA
438 Posts

Posted - 27 May 2001 :  20:49:26  Show Profile  Visit tteal's Homepage  Send tteal an AOL message  Send tteal an ICQ Message
I'm trying to pass from a form a telephone number formatted 000-00-0000 and when I do I get the following:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

I've tried Cstr(sTelephone), Cint(sTelephone) with no luck. Anyone know what I can do to make this work?

Any help would be great.

Thanks.

Cheers,
Tim

"The famous hosting provider hosting the Famous Snitz Forums!"
Drop me an email and find out about hosting your snitz forum too!
http://www.bandwidthunlimited.net
http://www.free-guestbook.com
http://www.tealnet.com

Doug G
Support Moderator

USA
6493 Posts

Posted - 27 May 2001 :  21:51:28  Show Profile
That error is often related to unitialized variables, ADO parameters that are not correct for your provider, or problems with Identity values.

Post some more info about your connection string and the code that gets the value from the form to the sql statement and maybe we can spot something wrong.



======
Doug G
======
Go to Top of Page

tteal
Junior Member

USA
438 Posts

Posted - 27 May 2001 :  22:50:10  Show Profile  Visit tteal's Homepage  Send tteal an AOL message  Send tteal an ICQ Message
Rs.open "select * from siteuser where UserId = '" & Request.form("EntryNumber") & "'", ObjConn, adOpenDynamic, adLockOptimistic


Cheers,
Tim

"The famous hosting provider hosting the Famous Snitz Forums!"
Drop me an email and find out about hosting your snitz forum too!
http://www.bandwidthunlimited.net
http://www.free-guestbook.com
http://www.tealnet.com
Go to Top of Page

mrWize
deleted

119 Posts

Posted - 27 May 2001 :  23:45:15  Show Profile
Whats the fieldtype of UserID?
If it is an integer den dropt the single ' like this:

Rs.open "select * from siteuser where UserId = " & Request.form("EntryNumber"), ObjConn, adOpenDynamic, adLockOptimistic


cya,
mrWize


Go to Top of Page

camusflage
Starting Member

USA
26 Posts

Posted - 28 May 2001 :  19:56:54  Show Profile
quote:

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.



Funny you should bring this up... I started playing with Snitz the other day, and encountered this very same problem in an unMODded page (inc_profile.asp out of pop_profile.asp?mode=goEdit). Depending upon your MDAC release, OLEDB provider, and connection string, you'll find this when you try to select a field, and then move back in the row to retrieve another record. I found that bio was filled, but that hobbies, news, and quote always came up blank. I ran strSQL through QA, and it came up okay. It was once I changed it to use rs(index) to retrieve the four fields that the problem became apparent. My fix was to go from this:

strMyBio = rs("M_BIO")
strMyHobbies = rs("M_HOBBIES")
strMyLNews = rs("M_LNEWS")
strMyQuote = rs("M_QUOTE")

to this:

strMyHobbies = rs("M_HOBBIES")
strMyLNews = rs("M_LNEWS")
strMyQuote = rs("M_QUOTE")
strMyBio = rs("M_BIO")

It may not be completely relevant to your situation, but the error was the same, so it might be a pointer in the right direction. If you want me to take a quick glance at your code, post it up or email me, and I'll try to give you some more specific information.

Mike


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07