Click here to Skip to main content
15,913,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPixel Shifting in Bitmap Pin
Sonhospa26-Sep-08 10:50
Sonhospa26-Sep-08 10:50 
AnswerRe: Pixel Shifting in Bitmap Pin
JR21229-Sep-08 1:11
JR21229-Sep-08 1:11 
QuestionRe: Pixel Shifting in Bitmap Pin
Sonhospa29-Sep-08 1:22
Sonhospa29-Sep-08 1:22 
QuestionThrowing Exception [modified] Pin
Sonhospa29-Sep-08 1:59
Sonhospa29-Sep-08 1:59 
AnswerRe: Throwing Exception Pin
jr21229-Sep-08 19:39
jr21229-Sep-08 19:39 
AnswerRe: Pixel Shifting in Bitmap Pin
jr21229-Sep-08 19:22
jr21229-Sep-08 19:22 
NewsRe: Pixel Shifting in Bitmap Pin
Sonhospa29-Sep-08 21:38
Sonhospa29-Sep-08 21:38 
QuestionConnections strings driving me crazy Pin
uneasyrider26-Sep-08 7:19
uneasyrider26-Sep-08 7:19 
I have a small VB app that is supposed to pull a set of records from an IBM DB2 Database and populate them into my vbapp. I know my DB2 connection works because I have several other reports that can access it. I am creating the connection string on the fly... but something is getting confused in the connection string. I've tried moving my connection strings around, but nothing is seeming to work.

When I run the app... I get the following message.

...Drivers SQLSetConnectAttr failed...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim startdate As String = DateTimePicker1.Text
        Dim enddate As String = DateTimePicker2.Text

        Dim statement As String = "SELECT DICT_NAME FROM DS004T01 WHERE SYSTEM_PREFIX = 'VL' and TYPE_DATE >= '" + startdate + "' and type_date <= '" + enddate + "'"

        Dim cmd As Odbc.OdbcCommand
        Dim hl7reader As Odbc.OdbcDataReader
        Dim sql As String
        Dim tmp1 As String



        Dim conn As Odbc.OdbcConnection = New Odbc.OdbcConnection("driver={IBM DB2 ODBC DRIVER};Database=xxxx;hostname=xxx.xxx.xxx.xxx;port=xxxx;protocol=TCPIP; uid=xxxxxxx; pwd=xxxxxx")


        Try
            conn.Open()
            sql = statement
            cmd = New Odbc.OdbcCommand(sql, conn)

            hl7reader = cmd.ExecuteReader
            Do While hl7reader.Read
                tmp1 = hl7reader("dict_name")
                ComboBox1.Items.Add(tmp1)
            Loop
        Catch ex As Exception

            MsgBox("Error" & ex.Message)

        End Try
    End Sub

AnswerRe: Connections strings driving me crazy Pin
Jon_Boy26-Sep-08 8:12
Jon_Boy26-Sep-08 8:12 
QuestionWindows Installer Textbox User Interface Pin
Cory Kimble26-Sep-08 7:03
Cory Kimble26-Sep-08 7:03 
AnswerRe: Windows Installer Textbox User Interface Pin
piyey26-Sep-08 10:54
piyey26-Sep-08 10:54 
QuestionLoad form count Pin
tatchung26-Sep-08 2:44
tatchung26-Sep-08 2:44 
AnswerRe: Load form count Pin
Jon_Boy26-Sep-08 3:43
Jon_Boy26-Sep-08 3:43 
AnswerRe: Load form count Pin
Dave Kreskowiak26-Sep-08 3:44
mveDave Kreskowiak26-Sep-08 3:44 
GeneralRe: Load form count Pin
tatchung26-Sep-08 8:42
tatchung26-Sep-08 8:42 
QuestionSort in entity Pin
Member 555221926-Sep-08 2:42
Member 555221926-Sep-08 2:42 
AnswerRe: Sort in entity Pin
Dave Kreskowiak26-Sep-08 3:38
mveDave Kreskowiak26-Sep-08 3:38 
QuestionDatabase Program Pin
Gagan.2026-Sep-08 1:42
Gagan.2026-Sep-08 1:42 
AnswerRe: Database Program Pin
Dave Kreskowiak26-Sep-08 3:34
mveDave Kreskowiak26-Sep-08 3:34 
QuestionGeneral information Pin
Gagan.2026-Sep-08 1:36
Gagan.2026-Sep-08 1:36 
AnswerRe: General information Pin
Ashfield26-Sep-08 2:22
Ashfield26-Sep-08 2:22 
Questionsuggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 0:29
WillRain26-Sep-08 0:29 
AnswerRe: suggestion on my design and help with dynamic buttons with right click detection Pin
Smithers-Jones26-Sep-08 1:07
Smithers-Jones26-Sep-08 1:07 
GeneralRe: suggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 9:31
WillRain26-Sep-08 9:31 
GeneralRe: suggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 12:52
WillRain26-Sep-08 12:52 

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.