Click here to Skip to main content
15,891,204 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: WHERE WILL I GET VB.NET PROJECT Pin
darkelv22-Jan-10 2:10
darkelv22-Jan-10 2:10 
GeneralRe: WHERE WILL I GET VB.NET PROJECT Pin
Smithers-Jones22-Jan-10 3:51
Smithers-Jones22-Jan-10 3:51 
Questiondatareader error how to solve Pin
Patrício dos Santos21-Jan-10 5:07
Patrício dos Santos21-Jan-10 5:07 
AnswerRe: datareader error how to solve Pin
Dave Kreskowiak21-Jan-10 5:19
mveDave Kreskowiak21-Jan-10 5:19 
GeneralRe: datareader error how to solve Pin
Patrício dos Santos21-Jan-10 5:41
Patrício dos Santos21-Jan-10 5:41 
GeneralRe: datareader error how to solve Pin
Dave Kreskowiak21-Jan-10 6:45
mveDave Kreskowiak21-Jan-10 6:45 
GeneralRe: datareader error how to solve Pin
Patrício dos Santos21-Jan-10 8:45
Patrício dos Santos21-Jan-10 8:45 
GeneralRe: datareader error how to solve Pin
Dave Kreskowiak21-Jan-10 9:37
mveDave Kreskowiak21-Jan-10 9:37 
Patrício dos Santos wrote:
How can I do a sql query in vb.net that can do that...

- Check if the user exists... then check if is admin:
-- If this statement is true, then print User FullName in lblFullName and YOU IS ADMIN in lblLevelAccess
Else


By breaking the problem down into smaller and smaller parts...

Step 1:
Does the user exist?

Step 2:
If so, retrieve the account details.

Your code has these two steps globbed together into one monolithic method that really should be broken down into more methods that do very specific things.


I already told you what the problem is. You're not checking to see if your second reader actually returned any records. You're just assuming it did.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: datareader error how to solve Pin
Patrício dos Santos21-Jan-10 10:09
Patrício dos Santos21-Jan-10 10:09 
GeneralRe: datareader error how to solve Pin
Dave Kreskowiak21-Jan-10 10:33
mveDave Kreskowiak21-Jan-10 10:33 
Question.dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
Mr Oizo20-Jan-10 22:37
Mr Oizo20-Jan-10 22:37 
AnswerRe: .dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
DaveAuld21-Jan-10 2:25
professionalDaveAuld21-Jan-10 2:25 
GeneralRe: .dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
Mr Oizo21-Jan-10 21:05
Mr Oizo21-Jan-10 21:05 
GeneralRe: .dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
DaveAuld21-Jan-10 21:15
professionalDaveAuld21-Jan-10 21:15 
GeneralRe: .dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
Mr Oizo24-Jan-10 23:09
Mr Oizo24-Jan-10 23:09 
GeneralRe: .dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
DaveAuld25-Jan-10 0:34
professionalDaveAuld25-Jan-10 0:34 
GeneralRe: .dat fixed length files being compressed when e-mailed to recipient through vb.net (URGENT!!!) Pin
Mr Oizo25-Jan-10 3:13
Mr Oizo25-Jan-10 3:13 
QuestionHow to seperate Letters, Numbers from a string? Pin
Paramu197320-Jan-10 22:12
Paramu197320-Jan-10 22:12 
AnswerRe: How to seperate Letters, Numbers from a string? Pin
Wayne Gaylard20-Jan-10 22:27
professionalWayne Gaylard20-Jan-10 22:27 
GeneralRe: How to seperate Letters, Numbers from a string? Pin
Paramu197320-Jan-10 22:35
Paramu197320-Jan-10 22:35 
GeneralRe: How to seperate Letters, Numbers from a string? Pin
Richard MacCutchan21-Jan-10 2:43
mveRichard MacCutchan21-Jan-10 2:43 
QuestionHow To Insert Username And Password Into MySql Using Vb.net's Form Pin
bernard tang20-Jan-10 20:27
bernard tang20-Jan-10 20:27 
AnswerRe: How To Insert Username And Password Into MySql Using Vb.net's Form Pin
Wayne Gaylard20-Jan-10 20:50
professionalWayne Gaylard20-Jan-10 20:50 
GeneralRe: How To Insert Username And Password Into MySql Using Vb.net's Form Pin
bernard tang20-Jan-10 22:46
bernard tang20-Jan-10 22:46 
GeneralRe: How To Insert Username And Password Into MySql Using Vb.net's Form [modified] Pin
Wayne Gaylard21-Jan-10 0:26
professionalWayne Gaylard21-Jan-10 0:26 

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.