Solved

vb6 run time error 3426

Posted on 2000-03-25
4
691 Views
Last Modified: 2012-05-04
I'm making a program and it was working fine untill I added a database and every time I try to run the program I get a run time 3426 message. Can some one help me with this.
Thanks
0
Comment
Question by:garybear
  • 2
4 Comments
 

Author Comment

by:garybear
ID: 2657493
Adjusted points from 50 to 75
0
 
LVL 1

Accepted Solution

by:
PatrickVD earned 75 total points
ID: 2657499
Hi Gary,

There is actually a knowledge base article on MS website that might solve your problem depending on the context where you got this runtime error..
Have a look at it. It contains even the source code to solve this problem.

http://support.microsoft.com/support/kb/articles/Q189/8/51.ASP?LNG=ENG&SA=ALLKB&FR=0

Hope this will solve your problem !

Patrick.
0
 

Expert Comment

by:jstitt
ID: 2657501
Runtime error '3426' means that the 'action was cancelled by an associated object'.  I suspect in your case that the sequence of database commands may not be correct.  Possible solutions are to add 'exception processing' to your code (e.g. Try/Except) or comment out the code near the database activity until the runtime error is 'isolated'. Then correct the sequence of events.

For example:
You might have methods such as 'Edit' and 'Update' out of sequence.
0
 

Author Comment

by:garybear
ID: 2657530
Thanks alot you were right and I appreciate your help.

Thanks again
Gary
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now