It was an XOR cipher. Old school. Unbreakable without the key, but computationally cheap for the slow processors of the late 90s.
If you get an "Object not found" error, go to Project > References and ensure the necessary libraries (like Microsoft ActiveX Data Objects) are checked. Why Study VB6 Today? visual basic 6.0 projects with source code