Re: VB6 - Runtime Error '91'
Well, this is one of the most frequent VB runtime errors you can get.
Unfortunately, it's sort of "generic", and basically can be anything.
It usually happens when you're using "third party stuff", or external components. I've never seen it happen in native VB.
So, it's basically that what it says: You're trying to use functions from an "object", that doesn't exist.
Check:
- Are all (type?)libraries included correctly? Correct versions? No collisions etc?
Project, Porperties, References...
The other thing is, that unfortunately from my experience, when doing COM stuff with VB, the auto complete doesn't work, and you've got to work "blind" with the objects (some get-DHTML-object-from-IE stuff was what I tried).
So you don't exactly know what sub-objects are set or do exist or even how the methods are spelled...
Sooooooo: Is adoSeats.Recordset.MoveFirst really correct syntax? Are the references for this ADO section up2date and correct? Any OCX needed?
Try to test it step by step. Try a method from Recordset that should defenitely work. If that doesn't help, try one from adoSeats....
Oh and btw, look into the dim-statement, if New is present or not, i can cause stuff:
Dim Object as [new] Thing
__________________
[ »] Entropy increases! :-/
|