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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Object variable or With block variable not set" error

Status
Not open for further replies.

cmetters

Programmer
Oct 30, 2001
9
0
0
GB
Hi, wonder if you can help.

I have this code in an ASP page:

Set lobjTravel = Server.CreateObject(&quot;<dll name>.<class name>&quot;)
lblnSuccess = lobjTravel.<function name>(request)

which basically calls a .dll to update a database.

But I get this message everytime:

&quot;Object variable or With block variable not set&quot;

Does anybody know the cause?

Thanks in anticipation,

Chris
 
Hey cmetters... I am almost 100% sure that the error will be inside your dll function which you've called <function name> (request). Whatever this function is... go into the source for it. You will be using an object that hasn't had an instance properly created with the SET keyword. Also check if you have any PROPERTY GETS and LETS that should perhaps be SETS!

Hope this helps, Brett Birkett B.Comp
Systems Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top