Click here to Skip to main content
15,903,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: object reference not set to an instance of an object error Pin
mr_lasseter22-Jul-06 5:08
mr_lasseter22-Jul-06 5:08 
GeneralRe: object reference not set to an instance of an object error Pin
str5022-Jul-06 5:21
str5022-Jul-06 5:21 
GeneralRe: object reference not set to an instance of an object error Pin
mr_lasseter22-Jul-06 5:32
mr_lasseter22-Jul-06 5:32 
GeneralRe: object reference not set to an instance of an object error Pin
str5022-Jul-06 6:03
str5022-Jul-06 6:03 
GeneralRe: object reference not set to an instance of an object error Pin
mr_lasseter22-Jul-06 6:18
mr_lasseter22-Jul-06 6:18 
GeneralRe: object reference not set to an instance of an object error Pin
str5022-Jul-06 7:42
str5022-Jul-06 7:42 
GeneralRe: object reference not set to an instance of an object error Pin
mr_lasseter22-Jul-06 10:34
mr_lasseter22-Jul-06 10:34 
GeneralRe: object reference not set to an instance of an object error [modified] Pin
str5022-Jul-06 10:52
str5022-Jul-06 10:52 
Alright I looked at the website and this is what I got out of it. This is what I have so far, but when I run the program now I don't get anything. It does not go to form2. It just stays at form1 even when I hit the search button. I must have done something wrong and I can't figure out. I am trying my best to figure out. Any help will be appreciated. Thanks again

Public Sub New(ByVal Value As String)<br />
            Dim dsData As DataSet = New DataSet("BackupInfo")<br />
            Dim stSQL As String<br />
            Dim backupTable As DataTable = dsData.Tables.Add("testbackup")<br />
<br />
            stSQL = "Select * from testbackup Where barcodeid = '" & Value & "'"<br />
<br />
            'Database code to return dataset to dsData<br />
<br />
<br />
            backupTable.Columns.Add("Barcodeid", Type.GetType("System.Int32"))<br />
            backupTable.Columns.Add("location", Type.GetType("System.Int32"))<br />
            backupTable.Columns.Add("datein", Type.GetType("System.String"))<br />
            backupTable.Columns.Add("dateout", Type.GetType("System.String"))<br />
            backupTable.Columns.Add("timein", Type.GetType("System.String"))<br />
            backupTable.Columns.Add("timeout", Type.GetType("System.String"))<br />
            backupTable.Columns.Add("comment", Type.GetType("System.String"))<br />
<br />
            Select Case dsData.Tables(0).Rows.Count<br />
                Case 1 'One Row Returned<br />
                    HasData = True<br />
                    TheData = dsData.Tables(0).Rows(0)<br />
                Case 0 'No Rows Found<br />
                    HasData = False<br />
                    TheData = Nothing<br />
                Case Else 'More then one row returned<br />
                    'Decided how to handle<br />
                    HasData = True<br />
                    TheData = dsData.Tables(0).Rows(0)<br />
            End Select<br />
<br />
<br />
        End Sub




-- modified at 16:57 Saturday 22nd July, 2006
GeneralRe: object reference not set to an instance of an object error Pin
mr_lasseter23-Jul-06 5:49
mr_lasseter23-Jul-06 5:49 
GeneralRe: object reference not set to an instance of an object error Pin
str5023-Jul-06 12:06
str5023-Jul-06 12:06 
AnswerRe: object reference not set to an instance of an object error [modified] Pin
xivovivovix4-Aug-06 1:42
xivovivovix4-Aug-06 1:42 
QuestionHard disk serial number Pin
mayoush22-Jul-06 3:17
mayoush22-Jul-06 3:17 
AnswerRe: Hard disk serial number Pin
bob1697222-Jul-06 8:07
bob1697222-Jul-06 8:07 
AnswerRe: Hard disk serial number Pin
_mubashir22-Jul-06 8:59
_mubashir22-Jul-06 8:59 
GeneralRe: Hard disk serial number Pin
mayoush23-Jul-06 4:35
mayoush23-Jul-06 4:35 
GeneralRe: Hard disk serial number Pin
Chatura Dilan23-Jul-06 15:40
Chatura Dilan23-Jul-06 15:40 
GeneralRe: Hard disk serial number Pin
mayoush24-Jul-06 3:49
mayoush24-Jul-06 3:49 
QuestionConfiguration Error when moving to new PC Pin
ssbelfast22-Jul-06 3:12
ssbelfast22-Jul-06 3:12 
AnswerRe: Configuration Error when moving to new PC Pin
Rizwan Bashir22-Jul-06 3:32
Rizwan Bashir22-Jul-06 3:32 
GeneralRe: Configuration Error when moving to new PC Pin
ssbelfast22-Jul-06 4:04
ssbelfast22-Jul-06 4:04 
QuestionNot the same BindingContext?? Pin
fiaolle21-Jul-06 21:16
fiaolle21-Jul-06 21:16 
AnswerRe: how to convert date format in vb?? Pin
Rizwan Bashir22-Jul-06 3:34
Rizwan Bashir22-Jul-06 3:34 
Questioncould not correctly add a new record Pin
VBDotnetNewbie21-Jul-06 9:17
VBDotnetNewbie21-Jul-06 9:17 
Generalsorry, a correction of the question: should be "pub_id" not "Author_id" Pin
VBDotnetNewbie21-Jul-06 9:24
VBDotnetNewbie21-Jul-06 9:24 
QuestionPicture in Database Pin
aransiola21-Jul-06 8:30
aransiola21-Jul-06 8:30 

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.