Click here to Skip to main content
15,885,309 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Print several pages Pin
Ajay.k_Singh4-Feb-08 22:01
Ajay.k_Singh4-Feb-08 22:01 
GeneralRe: Print several pages Pin
Marc Soleda5-Feb-08 20:37
Marc Soleda5-Feb-08 20:37 
Questionvb 6.0 crystal report 4.6 with crystalreport excepted below result Pin
perumalLashmi4-Feb-08 17:24
perumalLashmi4-Feb-08 17:24 
GeneralRe: vb 6.0 crystal report 4.6 with crystalreport excepted below result Pin
Steven J Jowett5-Feb-08 5:03
Steven J Jowett5-Feb-08 5:03 
GeneralDataset filter to show all records Pin
coldude4-Feb-08 15:12
coldude4-Feb-08 15:12 
GeneralRe: Dataset filter to show all records Pin
Mycroft Holmes4-Feb-08 20:04
professionalMycroft Holmes4-Feb-08 20:04 
GeneralRe: Dataset filter to show all records Pin
coldude5-Feb-08 15:14
coldude5-Feb-08 15:14 
GeneralRe: Dataset filter to show all records Pin
Mycroft Holmes5-Feb-08 15:30
professionalMycroft Holmes5-Feb-08 15:30 
Assuming that sim_code is a numeric, you need to pass a parameter to your stored proc (@sim_code|@instructor)

If you change this proc so
AuditType = your table name
AuditTypeID = sim_code
@AuditTypeID = @sim_code

ALTER Proc [dbo].[AuditTypeSelect]<br />
--Declare<br />
@AuditTypeID as int<br />
<br />
AS<br />
<br />
Select *<br />
From AuditType<br />
Where (IsNull(@AuditTypeID, -1) = -1 OR AuditTypeID = @AuditTypeID)<br />
Order By AuditType


Then test it with the values -1, 0 and 13


BTW
You are going to cause confusion all round if you change the var names all the time. If you are filtering Sim_Code then you should call the var @Sim_Code not instructor

Never underestimate the power of human stupidity
RAH

GeneralRe: Dataset filter to show all records Pin
coldude12-Feb-08 14:56
coldude12-Feb-08 14:56 
GeneralRe: Dataset filter to show all records Pin
Mycroft Holmes12-Feb-08 15:59
professionalMycroft Holmes12-Feb-08 15:59 
Generalstay in same page with error msg else redirect to another page Pin
uglyeyes4-Feb-08 15:10
uglyeyes4-Feb-08 15:10 
GeneralRe: stay in same page with error msg else redirect to another page Pin
Christian Graus4-Feb-08 17:14
protectorChristian Graus4-Feb-08 17:14 
GeneralIO stream error Pin
codingrocks4-Feb-08 14:21
codingrocks4-Feb-08 14:21 
GeneralRe: IO stream error Pin
Christian Graus4-Feb-08 17:18
protectorChristian Graus4-Feb-08 17:18 
GeneralInterfacing vb.net and pseudo-embedded C Pin
supercat94-Feb-08 10:01
supercat94-Feb-08 10:01 
GeneralRe: Interfacing vb.net and pseudo-embedded C Pin
MikeMarq4-Feb-08 18:51
MikeMarq4-Feb-08 18:51 
GeneralRe: Interfacing vb.net and pseudo-embedded C [modified] Pin
supercat95-Feb-08 8:10
supercat95-Feb-08 8:10 
Generalauto update update panel Pin
solarthur014-Feb-08 3:47
solarthur014-Feb-08 3:47 
GeneralRe: auto update update panel Pin
Christian Graus4-Feb-08 12:27
protectorChristian Graus4-Feb-08 12:27 
QuestionCan a Stored Proc works with Acces Pin
Vimalsoft(Pty) Ltd4-Feb-08 2:00
professionalVimalsoft(Pty) Ltd4-Feb-08 2:00 
AnswerRe: Can a Stored Proc works with Acces Pin
Steven J Jowett4-Feb-08 2:08
Steven J Jowett4-Feb-08 2:08 
GeneralRe: Can a Stored Proc works with Acces Pin
Vimalsoft(Pty) Ltd4-Feb-08 2:10
professionalVimalsoft(Pty) Ltd4-Feb-08 2:10 
AnswerRe: Can a Stored Proc works with Acces Pin
Guffa4-Feb-08 2:12
Guffa4-Feb-08 2:12 
GeneralEncrypting and Decrypting Files Pin
duo!@#4-Feb-08 1:39
duo!@#4-Feb-08 1:39 
GeneralRe: Encrypting and Decrypting Files Pin
Steven J Jowett4-Feb-08 2:19
Steven J Jowett4-Feb-08 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.