Solved

RaisError in Vb6 not showing up

Posted on 2002-05-21
3
739 Views
Last Modified: 2008-03-06
I have a trigger on insert that uses 2 select statements to check to see if the transaction is rolled backed or not. When the condition is met to be rolled back I use the
RaisError ('This transaction will be rolled back', 16, 1)
message. the only problem is that the message is not getting back to the vb application although the record is being rolled back. If I run it in the analyzer I do see the message.
I am using SQL 2000.

0
Comment
Question by:rvindust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7025687
Please maintain your open questions:

Faxing from exchange Date: 11/16/2000 11:45AM PST
http://www.experts-exchange.com/jsp/qShow.jsp?ta=exchangesvr&qid=11890858
SQL Setup Date: 03/12/2001 04:52AM PST
http://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=20090209
Domain logon permissions Date: 08/29/2001 05:04AM PST
http://www.experts-exchange.com/jsp/qShow.jsp?ta=win2k&qid=20175621
DSL VPN connection sharing Date: 01/10/2002 08:45AM PST
http://www.experts-exchange.com/jsp/qShow.jsp?ta=win2k&qid=20253681
VPN Logon Date: 02/16/2002 09:16AM PST
http://www.experts-exchange.com/jsp/qShow.jsp?ta=win2k&qid=20267631

Thanks,
Anthony  
0
 

Accepted Solution

by:
VBMeera earned 50 total points
ID: 7031220
hey,
r u using the same syntax in vb
"RaisError ('This transaction will be rolled back', 16, 1)"
the above is not Vb syntax
err.raise (err.number,err.source,err.description)
try this
0
 

Author Comment

by:rvindust
ID: 7236347
I found some information on this. you have to move thru the errors collection because VB does not always raise the error.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run code from text file in vb 1 87
VBA filters 2 71
vb6 connector to mongodb 2 141
adding "ungroup sheets" to existing vbs code 5 57
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

733 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