Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

(.vbs) Error: Object Required

Status
Not open for further replies.

andstyles

Programmer
Jan 25, 2005
3
GB
Hi,

I have a .vbs page that I am scheduling to run overnight.

As an .asp page the scripts executes fine. But saved as a .vbs file it throws back an error saying Object Required: 'Server' on this line:

set OrgRst2 = Server.CreateObject("ADODB.Recordset")

Can anyone please explain why it works okay as ASP but not VBS.


Thanks
 
I think this would do the trick...

set OrgRst2 = CreateObject("ADODB.Recordset")

_____________________________________
Feed a man a fish and feed him for a day.
Teach a man to fish and feed him for a lifetime...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top