Click here to Skip to main content
15,922,145 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 5:04
professionalVimalsoft(Pty) Ltd2-Jul-07 5:04 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net [modified] Pin
Nick Rioux2-Jul-07 5:09
Nick Rioux2-Jul-07 5:09 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak2-Jul-07 5:21
mveDave Kreskowiak2-Jul-07 5:21 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net [modified] Pin
Vimalsoft(Pty) Ltd2-Jul-07 5:48
professionalVimalsoft(Pty) Ltd2-Jul-07 5:48 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak2-Jul-07 12:42
mveDave Kreskowiak2-Jul-07 12:42 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 19:40
professionalVimalsoft(Pty) Ltd2-Jul-07 19:40 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak3-Jul-07 2:11
mveDave Kreskowiak3-Jul-07 2:11 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd3-Jul-07 2:33
professionalVimalsoft(Pty) Ltd3-Jul-07 2:33 
Sorry About that Dave, the Update method was working just that there was Data comming into my table, so after inserting new records , when i checked the last Record, it was not what i used for testing. so i searched them and i found them

Thank you Dave for you time. let me Paste my update code for user who will have the same Problem. here is the Solution.

<br />
   If mblnIsDirty Then<br />
            If MessageBox.Show("Do you want to Save the Changes?", "Property", _<br />
         MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then<br />
            <br />
<br />
                If checkerrors() Then<br />
                    MessageBox.Show("Your Dataset has Errors")<br />
                Else<br />
                    SqlDataAdapter1.Update(DataSet11, "Property")<br />
                End If<br />
<br />
            End If<br />
        End If<br />


here is the CheckErrors() function code

<br />
Private Function checkerrors() As Boolean<br />
<br />
<br />
        Dim table As Data.DataTable<br />
        Dim row As Data.DataRow<br />
        SqlDataAdapter1.Update(DataSet11, "Property")<br />
        If DataSet11.HasErrors Then<br />
<br />
            For Each table In DataSet11.Tables<br />
                If table.HasErrors Then<br />
                    Return True<br />
                    For Each row In table.Rows<br />
                        If row.HasErrors Then<br />
                            MessageBox.Show("Dataset has Errors")<br />
                            ' Process error here.<br />
<br />
                        End If<br />
                    Next<br />
                ElseIf table.HasErrors = False Then<br />
                    Return False<br />
                    MessageBox.Show("Dataset has no Errors")<br />
                End If<br />
            Next<br />
        End If<br />
    End Function<br />


Thanks for your time and Help

Vuyiswa

GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 5:27
professionalVimalsoft(Pty) Ltd2-Jul-07 5:27 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak2-Jul-07 5:31
mveDave Kreskowiak2-Jul-07 5:31 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Nick Rioux2-Jul-07 5:33
Nick Rioux2-Jul-07 5:33 
QuestionProblem with VB.NET and MS Access Pin
Nilesh Hapse2-Jul-07 3:18
Nilesh Hapse2-Jul-07 3:18 
AnswerRe: Problem with VB.NET and MS Access Pin
cutequencher2-Jul-07 6:28
cutequencher2-Jul-07 6:28 
GeneralRe: Problem with VB.NET and MS Access Pin
Nilesh Hapse2-Jul-07 19:29
Nilesh Hapse2-Jul-07 19:29 
QuestionVB.net user controls in Access 2007 Pin
Tom Deketelaere2-Jul-07 3:00
professionalTom Deketelaere2-Jul-07 3:00 
AnswerRe: VB.net user controls in Access 2007 Pin
Nick Rioux2-Jul-07 4:30
Nick Rioux2-Jul-07 4:30 
QuestionSee which virusscanner and firewall is installed Pin
Zaegra2-Jul-07 2:24
Zaegra2-Jul-07 2:24 
AnswerRe: See which virusscanner and firewall is installed Pin
Tom Deketelaere2-Jul-07 3:17
professionalTom Deketelaere2-Jul-07 3:17 
AnswerRe: See which virusscanner and firewall is installed Pin
Nick Rioux2-Jul-07 4:39
Nick Rioux2-Jul-07 4:39 
AnswerRe: See which virusscanner and firewall is installed Pin
Dave Kreskowiak2-Jul-07 5:17
mveDave Kreskowiak2-Jul-07 5:17 
QuestionPrinting a form Pin
Zaegra2-Jul-07 2:03
Zaegra2-Jul-07 2:03 
AnswerRe: Printing a form [modified] Pin
Tom Deketelaere2-Jul-07 2:57
professionalTom Deketelaere2-Jul-07 2:57 
QuestionModify entire line Pin
sridhar kiran2-Jul-07 1:50
sridhar kiran2-Jul-07 1:50 
AnswerRe: Modify entire line Pin
SHatchard2-Jul-07 2:00
SHatchard2-Jul-07 2:00 
AnswerRe: Modify entire line Pin
Dave Kreskowiak2-Jul-07 4:52
mveDave Kreskowiak2-Jul-07 4: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.