Click here to Skip to main content
16,004,901 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVb.Net Small Project Pin
VBUser7723-Aug-05 14:55
VBUser7723-Aug-05 14:55 
GeneralRe: Vb.Net Small Project Pin
rwestgraham23-Aug-05 15:28
rwestgraham23-Aug-05 15:28 
QuestionApplication Login Suggestions? Pin
DEWright_CA23-Aug-05 12:58
DEWright_CA23-Aug-05 12:58 
AnswerRe: Application Login Suggestions? Pin
Rizwan Bashir24-Aug-05 2:14
Rizwan Bashir24-Aug-05 2:14 
QuestionObfuscation..of windows based vb.net app. causes the Crystal reports to error out? Pin
tciinc123-Aug-05 10:52
tciinc123-Aug-05 10:52 
Generaldebug from web service Pin
liquid_23-Aug-05 10:45
liquid_23-Aug-05 10:45 
GeneralUnhandled Exception - please help! Pin
dotolee23-Aug-05 9:13
dotolee23-Aug-05 9:13 
GeneralRe: Unhandled Exception - please help! Pin
Steve Pullan23-Aug-05 14:01
Steve Pullan23-Aug-05 14:01 
Try moving the gobjDBCommand = New OleDbCommand(gstrSQL, gConn) line into the body of the IF statement like this...

Public Function GetPMOHistory() As Boolean
    gstrSQL = "SELECT * FROM QUERY1"
'    gobjDBCommand = New OleDbCommand(gstrSQL, gConn)  ' FROM HERE
    If Connect(PMO) Then
        gobjDBCommand = New OleDbCommand(gstrSQL, gConn)  ' TO HERE
        QueryResults = gobjDBCommand.ExecuteReader()
    Else
        Me.ErrorMessage = "Unable to connect to database. Please try again later"
    End If
End Function


The variable gConn is not initialized until after function Connect() is called so the instantiation of gobjDBCommand is not valid until this time.

...Steve
GeneralRe: Unhandled Exception - please help! Pin
dotolee24-Aug-05 2:57
dotolee24-Aug-05 2:57 
GeneralConversion of vb6 to .net web form Pin
KevinSDavis23-Aug-05 7:18
sussKevinSDavis23-Aug-05 7:18 
Generalnew table won't appear in Config Wizard Pin
DaveC42691323-Aug-05 6:32
DaveC42691323-Aug-05 6:32 
GeneralMouseHover Event Pin
directred23-Aug-05 5:37
directred23-Aug-05 5:37 
GeneralRe: MouseHover Event Pin
oakleaf23-Aug-05 5:42
oakleaf23-Aug-05 5:42 
GeneralException Handling in remoting Pin
Dinesh Thakan23-Aug-05 5:24
Dinesh Thakan23-Aug-05 5:24 
GeneralDateTimePicker - Setting to blank Pin
dptalt23-Aug-05 3:45
dptalt23-Aug-05 3:45 
GeneralRe: DateTimePicker - Setting to blank Pin
Atul Kharecha23-Aug-05 4:20
Atul Kharecha23-Aug-05 4:20 
GeneralRe: DateTimePicker - Setting to blank Pin
ljf11823-Aug-05 6:17
ljf11823-Aug-05 6:17 
GeneralCombo box question Pin
KreativeKai23-Aug-05 2:39
professionalKreativeKai23-Aug-05 2:39 
GeneralVBA Excel 2003 With Code Pin
PHDENG8123-Aug-05 1:35
PHDENG8123-Aug-05 1:35 
GeneralRe: VBA Excel 2003 With Code Pin
Steve Pullan23-Aug-05 2:00
Steve Pullan23-Aug-05 2:00 
GeneralRe: VBA Excel 2003 With Code Pin
PHDENG8123-Aug-05 3:32
PHDENG8123-Aug-05 3:32 
GeneralRe: VBA Excel 2003 With Code Pin
Steve Pullan23-Aug-05 3:40
Steve Pullan23-Aug-05 3:40 
GeneralRe: VBA Excel 2003 With Code Pin
PHDENG8123-Aug-05 3:53
PHDENG8123-Aug-05 3:53 
GeneralRe: VBA Excel 2003 With Code Pin
Steve Pullan23-Aug-05 4:21
Steve Pullan23-Aug-05 4:21 
GeneralUpdating a text box automatically Pin
directred23-Aug-05 1:12
directred23-Aug-05 1:12 

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.