Results 1 to 4 of 4

Thread: New to VB need help with some code Please help.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2011
    Posts
    2

    New to VB need help with some code Please help.

    I am trying to build what shouls have been simple and quick to help my mom out but I am struggling with it now any help will be apprcieated. I am having problems with adding dollar values in a database to give a total to start off with. like I said i am new at this.

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: New to VB need help with some code Please help.

    Are you using VB.NET or an earlier version of VB?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: New to VB need help with some code Please help.

    In addition to answering the above question, please let us know what kind of database you are currently using and post the code you have tried that isn't working for you.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2011
    Posts
    2

    Re: New to VB need help with some code Please help.

    I am using Visual Basic 2008 Express Edition. Form code
    Code:
    Public Class Form1
    
        Private Sub Bill_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    
        End Sub
    
        Private Sub DataBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataBindingNavigatorSaveItem.Click
            Me.Validate()
            Me.DataBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.BillsDataSet)
    
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            'TODO: This line of code loads data into the 'BillsDataSet.data' table. You can move, or remove it, as needed.
    
    
        End Sub
    End Class
    app.config
    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
        </configSections>
        <connectionStrings>
            <add name="Diane_s_Bills.My.MySettings.billsConnectionString"
                connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\bills.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
                providerName="System.Data.SqlClient" />
        </connectionStrings>
        <system.diagnostics>
            <sources>
                <!-- This section defines the logging configuration for My.Application.Log -->
                <source name="DefaultSource" switchName="DefaultSwitch">
                    <listeners>
                        <add name="FileLog"/>
                        <!-- Uncomment the below section to write to the Application Event Log -->
                        <!--<add name="EventLog"/>-->
                    </listeners>
                </source>
            </sources>
            <switches>
                <add name="DefaultSwitch" value="Information" />
            </switches>
            <sharedListeners>
                <add name="FileLog"
                     type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
                     initializeData="FileLogWriter"/>
                <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
                <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
            </sharedListeners>
        </system.diagnostics>
    </configuration>
    I attached the database files.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width