Click here to Skip to main content
15,915,172 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp5-Aug-08 8:26
reynaldosp5-Aug-08 8:26 
GeneralRe: stored procedure with vb.bet Pin
jzonthemtn5-Aug-08 8:39
jzonthemtn5-Aug-08 8:39 
GeneralRe: stored procedure with vb.bet Pin
Paul Conrad5-Aug-08 18:59
professionalPaul Conrad5-Aug-08 18:59 
GeneralRe: stored procedure with vb.bet Pin
nishugaurav5-Aug-08 23:07
nishugaurav5-Aug-08 23:07 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp6-Aug-08 4:27
reynaldosp6-Aug-08 4:27 
AnswerRe: stored procedure with vb.bet Pin
Guffa5-Aug-08 8:01
Guffa5-Aug-08 8:01 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp5-Aug-08 8:30
reynaldosp5-Aug-08 8:30 
GeneralRe: stored procedure with vb.bet Pin
Guffa5-Aug-08 12:52
Guffa5-Aug-08 12:52 
reynaldosp wrote:
but this not work


That's not a useful description. What happens? Does it compile? Do you get an error message? What do you expect it to do, what does it do, and how does that differ from what you expect?

reynaldosp wrote:
cmdOrders.Parameters"@StartDate").Value = "2008-01-01"


You are missing a starting parenthesis after cmdOrders.Parameters.

As the data type for the parameter is DateTime, you should assign it a DateTime value, not a string.

The Add method returns a reference to the parameter, so you don't have to access it by name. Also, it has an overload that creates the parameter for you.
cmdOrders.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = new DateTime(2008, 1, 1)

reynaldosp wrote:
cmdOrders.Parameters("@EndDate").Value = "2008-0-10"


That's not a valid date. I suppose you meant "2008-01-10"?
cmdOrders.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = new DateTime(2008, 1, 10)


Despite everything, the person most likely to be fooling you next is yourself.

JokeRe: stored procedure with vb.bet Pin
Mycroft Holmes5-Aug-08 21:33
professionalMycroft Holmes5-Aug-08 21:33 
GeneralRe: stored procedure with vb.bet Pin
Guffa6-Aug-08 3:11
Guffa6-Aug-08 3:11 
QuestionCopy pasting datarow Pin
zzsoulzz5-Aug-08 7:16
zzsoulzz5-Aug-08 7:16 
AnswerRe: Copy pasting datarow Pin
Mycroft Holmes5-Aug-08 21:38
professionalMycroft Holmes5-Aug-08 21:38 
QuestionHow do I build a custom popup screen to modify the properties of a custom control? Pin
chas0365-Aug-08 7:08
chas0365-Aug-08 7:08 
AnswerRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
Thomas Stockwell5-Aug-08 9:05
professionalThomas Stockwell5-Aug-08 9:05 
GeneralRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
chas0365-Aug-08 9:17
chas0365-Aug-08 9:17 
GeneralRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
Thomas Stockwell5-Aug-08 9:48
professionalThomas Stockwell5-Aug-08 9:48 
QuestionDrag-and-Drop in VB.NET Pin
jacobjordan5-Aug-08 6:48
jacobjordan5-Aug-08 6:48 
AnswerRe: Drag-and-Drop in VB.NET Pin
Bassam Saoud5-Aug-08 6:54
Bassam Saoud5-Aug-08 6:54 
QuestionEnumeration - Public enum statement question Pin
chas0365-Aug-08 4:11
chas0365-Aug-08 4:11 
AnswerRe: Enumeration - Public enum statement question Pin
jzonthemtn5-Aug-08 4:21
jzonthemtn5-Aug-08 4:21 
GeneralRe: Enumeration - Public enum statement question Pin
Oakman5-Aug-08 7:34
Oakman5-Aug-08 7:34 
GeneralRe: Enumeration - Public enum statement question Pin
jzonthemtn5-Aug-08 7:49
jzonthemtn5-Aug-08 7:49 
GeneralRe: Enumeration - Public enum statement question Pin
MidwestLimey5-Aug-08 12:12
professionalMidwestLimey5-Aug-08 12:12 
QuestionHelp understanding C# to VB.Net translation of event handlers... Need C# and VB.Net expert... Pin
Keith Yerian5-Aug-08 3:24
Keith Yerian5-Aug-08 3:24 
AnswerRe: Help understanding C# to VB.Net translation of event handlers... Need C# and VB.Net expert... Pin
Dave Doknjas5-Aug-08 5:04
Dave Doknjas5-Aug-08 5:04 

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.