Stephen Lebans Tooltip error 91 "Object variable or with block ...

S

Silvio

Hello, I love the tooltip code of Stephen Lebans
(http://www.lebans.com/tooltip.htm)
I am able to use it a couple forms in my database. However, it is giving me
"Run-time error'91': Object variable or with block variable not set" in a
couple other forms in the same database. What does this means and how do I go
by in fixing it?
 
S

Stephen Lebans

Could be corruption in the code. Decompile. Import all of the objects into a
new clean database. Decompile again.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
S

Silvio

Stephen, I learned how to decompile and I did follow your steps, however the
problem persists. I when through the debugging process at error 91 and this
is what I got: after pressing DEBUG it goes to line "Call Create(ME)" after
few loops and jumping goes to "Public function crate(frm as for) as Boolean"
to the line "colControls.Add cTBox, ctl.Name" and then after executing that
line the following message appears "Run Time error '457': This key is already
associated with an element of this collection" and the goes back to error 91
starts again with the same thing. What else can it be? It make any difference
if I have subforms in my form? Does make any difference if you i have combo
box? And by the way, I am using Access 2003.

Thank you,
Silvio
 
S

Stephen Lebans

You will need to implement seperate Tooltip objects for each Form from
within the Load event of each form.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
S

Silvio

Tooltip objects... meaning? ALso, wich line of code dictade the delay before
the tooltip shows?
 
S

Stephen Lebans

Each Form must have its own separate Tooltips class object declared and
created within that form's Load event. It's difficult to debug to from here.
Why don't you try implementing the Tooltips class starting with one single
form. If you cannot get that working then post your code for that single
form.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
S

Silvio

I did it already. Its working fine in two separate forms, however, I am
having issues with a couple other forms within the same database.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top