Click here to Skip to main content
15,907,183 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: In need of help on VB Pin
Dave Kreskowiak8-Feb-11 15:40
mveDave Kreskowiak8-Feb-11 15:40 
AnswerRe: In need of help on VB Pin
popkutty10-Feb-11 17:16
popkutty10-Feb-11 17:16 
AnswerRe: In need of help on VB Pin
hugoguan25-May-11 23:06
hugoguan25-May-11 23:06 
QuestionAdd two field from database to combobox Pin
ivo755-Feb-11 3:53
ivo755-Feb-11 3:53 
AnswerRe: Add two field from database to combobox Pin
Dave Kreskowiak5-Feb-11 8:20
mveDave Kreskowiak5-Feb-11 8:20 
QuestionSub routine not working Pin
Doug Ancil4-Feb-11 5:32
Doug Ancil4-Feb-11 5:32 
AnswerRe: Sub routine not working Pin
riced4-Feb-11 6:08
riced4-Feb-11 6:08 
GeneralRe: Sub routine not working Pin
Doug Ancil4-Feb-11 7:51
Doug Ancil4-Feb-11 7:51 
David,

Thank you for pointing that out to me. I changed the code:
VB
  Private Sub Exceptionquery()
        Dim connection As System.Data.SqlClient.SqlConnection
        Dim connectionString As String = "Initial Catalog=mdr;Data Sourcexxxxx;uid=xxxxx;password=xxxxx"
        Dim _sql As String = "SELECT [Exceptions].Employeenumber,[Exceptions].exceptiondate, [Exceptions].starttime, [exceptions].endtime, [Exceptions].code, datediff(minute, starttime, endtime)  as duration INTO scratchpad3 " + _
        "FROM [Exceptions]" + _
        "where [Exceptions].exceptiondate between @payperiodstartdate and payperiodenddate" + _
"GROUP BY [Exceptions].Employeenumber, [Exceptions].Exceptiondate, [Exceptions].starttime, [exceptions].endtime," + _
"[Exceptions].code, [Exceptions].exceptiondate"
        connection = New SqlConnection(connectionString)
        connection.Open()
        Dim _CMD As SqlCommand = New SqlCommand(_sql, connection)
        _CMD.Parameters.AddWithValue("@payperiodstartdate", payperiodstartdate)
        _CMD.Parameters.AddWithValue("@payperiodenddate", payperiodenddate)
        connection.Close()
    End Sub


and I thought by using this command in my next sub
VB
Exceptionquery()

that I was calling that subroutine.
GeneralRe: Sub routine not working Pin
ChandraRam4-Feb-11 9:53
ChandraRam4-Feb-11 9:53 
GeneralRe: Sub routine not working Pin
Doug Ancil4-Feb-11 10:57
Doug Ancil4-Feb-11 10:57 
GeneralRe: Sub routine not working Pin
riced4-Feb-11 11:40
riced4-Feb-11 11:40 
GeneralRe: Sub routine not working Pin
riced4-Feb-11 11:48
riced4-Feb-11 11:48 
GeneralRe: Sub routine not working Pin
Doug Ancil7-Feb-11 4:22
Doug Ancil7-Feb-11 4:22 
AnswerRe: Sub routine not working Pin
Luc Pattyn7-Feb-11 4:34
sitebuilderLuc Pattyn7-Feb-11 4:34 
GeneralRe: Sub routine not working Pin
Doug Ancil7-Feb-11 4:45
Doug Ancil7-Feb-11 4:45 
GeneralRe: Sub routine not working Pin
Luc Pattyn7-Feb-11 5:07
sitebuilderLuc Pattyn7-Feb-11 5:07 
GeneralRe: Sub routine not working Pin
Doug Ancil7-Feb-11 5:22
Doug Ancil7-Feb-11 5:22 
GeneralRe: Sub routine not working Pin
riced7-Feb-11 9:43
riced7-Feb-11 9:43 
Questionocx control tabctl32 on a windows 7 Pin
omlac3-Feb-11 20:50
omlac3-Feb-11 20:50 
AnswerRe: ocx control tabctl32 on a windows 7 Pin
Dave Kreskowiak4-Feb-11 8:09
mveDave Kreskowiak4-Feb-11 8:09 
QuestionDon't allow notifyIcon to be hidden Pin
LCARS x323-Feb-11 6:55
LCARS x323-Feb-11 6:55 
AnswerRe: Don't allow notifyIcon to be hidden Pin
Luc Pattyn3-Feb-11 7:03
sitebuilderLuc Pattyn3-Feb-11 7:03 
GeneralRe: Don't allow notifyIcon to be hidden Pin
LCARS x323-Feb-11 7:26
LCARS x323-Feb-11 7:26 
AnswerRe: Don't allow notifyIcon to be hidden Pin
Luc Pattyn3-Feb-11 8:46
sitebuilderLuc Pattyn3-Feb-11 8:46 
GeneralRe: Don't allow notifyIcon to be hidden Pin
Steve Maier3-Feb-11 9:32
professionalSteve Maier3-Feb-11 9:32 

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.