MarcusJT - former ASP web developer / former SPF "ASP Guru" - *very* old blog with some useful ASP code - Please think, Google, and search these forums before posting! Please remove those tags. –mason Apr 27 '15 at 17:04 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote That error would suggest that you haven't What can I say instead of "zorgi"? It's quick & easy. http://ebprovider.com/classic-asp/classic-asp-object-moved-error.php
Oli Jul 19 '05 #1 Post Reply Share this Question 4 Replies P: n/a Bob Barrows Oli wrote: Hi Hope someone can help: ERROR: Microsoft VBScript runtime (0x800A01A8) Object required: '' I am trying to open and read a text file and read the IP addresses in the file and allow only the IP addresses in the file access to the server Response.Write(s) Next Set fso = Nothing The asp page returns the 'Object Required' error on the line, "s = fl.Name". Similar topics Scripts working fine on my machine but error: object required , on older desktop VBscript error “VB runtime error : Object required” VbScript error "VB runtime error : Object
Set SetConn = Conn end Function #6 (permalink) March 18th, 2004, 03:46 AM pgtips Friend of Wrox Join Date: Jun 2003 Location: , , United Kingdom. Why? What should I do? But I keep getting this error: Microsoft VBScript runtime error '800a01a8' Object required: 'Contents' /Folder/ValidAddressList.asp, line 42 Here is my code: FUNCTION ValidIPs(pIP) Const Filename = "/Folder/ipaddress.txt" ' file of ip
Join Date Jan 2002 Location London Posts 3,509 Mentioned 0 Post(s) Tagged 0 Thread(s) Originally Posted by aliaga61 i figured out my mistake...i shouldn't have been naming my connection adoConnWEBtest1,2,3,etc....took the Thanks in advance! My original code was written in Dreamweaver and the font they use for code looks EXACTLY the same for the lower case letter L and the digit One. Classic Asp Error 424 more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
UserRecordset.Open SQLString, DatabaseConnection 'Test to see if no records match the query. Thanks everyone for the help! The time now is 12:04 AM. http://stackoverflow.com/questions/17468979/function-error-object-required-800a01a8 WHere's my error coming from?
Can anyone shed any light on this? Try Catch Asp If so, stop doing that. -- Aaron Bertrand SQL Server MVP http://www.aspfaq.com/ intPrice = formatNumber(rsProd("Price"), 2) ERROR: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'formatNumber' Jul 19 '05 #5 This Join them; it only takes a minute: Sign up Function Error Object Required 800a01a8 up vote 1 down vote favorite I'm relatively new to functions and classes so not too sure Set UserRecordset = Server.CreateObject("ADODB.Recordset") SQLString = "SELECT CPMS_UserName, Access_type FROM CPMS_Users_table WHERE (CPMS_UserName = '" & strUserID & "')" 'Run the SQL query.
Mrs.Footohi #2 (permalink) July 17th, 2003, 06:32 PM footohi Registered User Join Date: Jun 2003 Location: tempe, AZ, USA. http://www.sitepoint.com/forums/showthread.php?147827-Object-required-error standard for all users Dim MyCDONTSMail2 Dim HTML Set MyCDONTSMail2 = CreateObject("CDONTS.NewMail") HTML = "" HTML = HTML & "" HTML = HTML & "" HTML = HTML Classic Asp On Error Resume Next Example Stu --
Browse other questions tagged vbscript asp-classic or ask your own question. check my blog Welcome to the p2p.wrox.com Forums. Hope this helps Janette
It's giving a variable a numeric prefix which isn't allowed. Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page... So when you try to call Instr() method on it, it is saying the string is not an object and so it doesn't contain methods like InStr(). this content To solve this, use the only proper way in VBScript to check for that special value: If SqlStatement Is Nothing Then ' Create a sql statement Set SqlStatement = Server.CreateObject("ADODB.Command") '
The problem is that you are using the variable strConn as if it were a Connection object (you're invoking the .execute() method on it), but it's actually just a string. 800a01a8 Object Required Vbscript Why? > Can anyone shed any light on this? > Thanks > Jul 28 '06 #6 P: n/a Lee Taylor On 28/07/2006 17:23, hogwell wrote: Stuart, Thanks for this link, although Everything I've found on the runtime error '800a01a8' points to not having IIS Virtual directory application created, but it is.
Welcome to the p2p.wrox.com Forums. If you are using the correc recordset variable, then the Price field could contain a Null, which cannot be handled by formtNumber. Set Engineernote = NoteResults End If Make sure you handle the returned value/object appropriately in the rest of your script. Microsoft Vbscript Runtime Error 800a01a8 Object Required Undefined So, your comment about object names was also relevant - but note that this code is taken verbatim from the Microsoft Help file for FileSystemObject (except for the typo)!
I have never learned Classic ASP (or any server-side programs). Posts: 1,212 Thanks: 0 Thanked 1 Time in 1 Post Peter is correct, you're missing the Set statement. Join them; it only takes a minute: Sign up ASP Classic VB error 800a01a8 object required up vote 1 down vote favorite I am attempting to fix an issue on a have a peek at these guys I want to have a connection opened in a function or subroutine as follows it's in a seperate include file and yes included....
If you must reply off-line, then remove the "NO SPAM" Jul 19 '05 #2 P: n/a Oli Hi Bob Thanks for the reply. You DON'T need the Set. Need to download code? DatabaseConnection.Close Set DatabaseConnection = Nothing Exit Function End Function Note: see my note above '** If I uncomment those two lines I lose the session after the database close, but again
Contact Us - Wrox - Privacy Statement - Top Powered by vBulletin Copyright ©2000 - 2016, Jelsoft Enterprises Ltd. © 2013 John Wiley & Sons, Inc. I am trying to use the following ASP code to examine the file names in a folder: Dim fso, f, fl, s, fs Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder("C:\Inetpub\wwwroot\MySite\subfolder Password Reminder Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search Classic ASP Databases Discuss using ASP 3 to work with data in databases, including however, you can't use MyConn.Close as the object doesn't exist...
I'm rather surprised that's the solution to your problem - naming a variable with a numeric suffix should make absolutely NO difference at all. Try:Dim fso, f, fl, s, fsSet fso = CreateObject("Scripting.FileSystemObject")Set f = fso.GetFolder(Server.MapPath("/subfolder"))Set fs = f.FilesFor Each fl in fs s = fl.NameResponse.Write(s)NextSet fso = Nothingmight help fix the problem....but here it then just need to use the relevant SetConn each time I call it at least I can now close the damn things :) Thanks #8 (permalink) February 20th, 2007, Sean #2 (permalink) March 17th, 2004, 04:51 PM SeanW Authorized User Join Date: Mar 2004 Location: , , .
Stuart Palmer wrote: your code works for me, may be something to do with the path you have stated. Thanks. =) Faq Reply With Quote Share This Thread Tweet This + 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thread « Previous Thread | So, your comment about object names was also relevant - but note that this code is taken verbatim from the Microsoft Help file for FileSystemObject (except for the typo)! I would also recommend you choose better object names, I don't think the ones you have chosen help debug.
when i run the page i get an object required error message: Microsoft VBScript runtime error '800a01a8' Object required: '' /test/testbasket.asp, line 85 line 85 is referring to the set adoRS2