Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb6 error - Run-time error '3265':

Posted on 2014-02-17
3
Medium Priority
?
509 Views
Last Modified: 2014-02-17
When I run a system we have that is written in VB6 and interacts with SQL Server 2008 R2, the error below occurs when trying to change a user password through he VB6 system.
Has anyone encountered this error before?  Any ideas on what causes this error? What should I check to resolve this problem?
Please see the attached file for screen shots and further clarification.
Thanks in advance for any help.

-Utilities
-Change Password
--Enter Password info
VB error occurs…
Run-time error ‘3265’:
Item cannot be found in the collection corresponding to the requested name or ordinal.

See screen shots below…
3265-run-time-error-screen-shot.docx
0
Comment
Question by:tesla764
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
advfinance earned 2000 total points
ID: 39865071
You've referenced a field that doesn't exist in your record set.

e.g. "SELECT Field1 FROM Table1"

Then later:

rs.Fields("Field2").Value

You'll get that error there.

Does that point you in the right direction?

--
Chris

(PS: You might want to consider posting your screenshots as images, not docx files. More people might view them.)
0
 

Author Comment

by:tesla764
ID: 39865078
Possibly, I will check that out and let you know.
Thanks Chris
0
 

Author Closing Comment

by:tesla764
ID: 39865257
Thanks Chris. Your suggestion helped me fix the problem.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question