?
Solved

VB.net code to query a stored procedure for an IF-THEN statement

Posted on 2003-03-29
4
Medium Priority
?
222 Views
Last Modified: 2010-05-01
I am working on an acsx user module with Visual Studio .net in VB.net.

I want code to query a stored procedure to see if a field has a particular value to create an if-then statement.

Something like . .

If in SP_Select_whatever
Record=@variable
variable2=X
then . . .

Thanks is advance.

Quick answer is important, hence the points
0
Comment
Question by:JCMcNeil
[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
4 Comments
 
LVL 3

Accepted Solution

by:
emadat earned 1816 total points
ID: 8231257
Look at the articel: "Using Stored Procedures in Visual Basic .NET" from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet09102002.asp

Regards
0
 

Author Comment

by:JCMcNeil
ID: 8231280
Thanks for referring me to the long article.
However, I am in a bit of a hurry with this . . .
I know how to display, edit, delete, and add data from a stored procedure with vb.net.

Being the newbie I am, though, I am not sure how to use vb.net to simply check data in a stored procedure to see if it matches a value as part of an if-then statement.

anyone ready with a quick answer??
0
 

Expert Comment

by:CleanupPing
ID: 8531357
Hi JCMcNeil,
This old question (QID 20567519) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 9440705
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->Accept emadat's comment as Answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 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