Click here to Skip to main content
15,921,548 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to restrict label as an output to take 3 decimal place Pin
Ralf Meier13-Apr-17 2:04
mveRalf Meier13-Apr-17 2:04 
QuestionConnection String Hash Pin
911911099-Apr-17 21:00
911911099-Apr-17 21:00 
AnswerRe: Connection String Hash Pin
Midi_Mick9-Apr-17 21:19
professionalMidi_Mick9-Apr-17 21:19 
GeneralRe: Connection String Hash Pin
911911099-Apr-17 21:22
911911099-Apr-17 21:22 
GeneralRe: Connection String Hash Pin
Richard MacCutchan9-Apr-17 21:46
mveRichard MacCutchan9-Apr-17 21:46 
GeneralRe: Connection String Hash Pin
911911099-Apr-17 21:55
911911099-Apr-17 21:55 
GeneralRe: Connection String Hash Pin
Richard MacCutchan9-Apr-17 22:10
mveRichard MacCutchan9-Apr-17 22:10 
GeneralRe: Connection String Hash Pin
Dave Kreskowiak10-Apr-17 2:43
mveDave Kreskowiak10-Apr-17 2:43 
Questionvb.net report card generation Pin
Member 131142067-Apr-17 19:38
Member 131142067-Apr-17 19:38 
AnswerRe: vb.net report card generation Pin
Richard MacCutchan7-Apr-17 21:34
mveRichard MacCutchan7-Apr-17 21:34 
Questionvb6 crystal report- subreport Pin
hoomi_ghost7-Apr-17 4:17
hoomi_ghost7-Apr-17 4:17 
AnswerRe: vb6 crystal report- subreport Pin
Richard Deeming7-Apr-17 4:22
mveRichard Deeming7-Apr-17 4:22 
GeneralRe: vb6 crystal report- subreport Pin
hoomi_ghost7-Apr-17 13:15
hoomi_ghost7-Apr-17 13:15 
AnswerRe: vb6 crystal report- subreport Pin
CHill607-Apr-17 4:57
mveCHill607-Apr-17 4:57 
AnswerRe: vb6 crystal report- subreport Pin
Dave Kreskowiak7-Apr-17 8:22
mveDave Kreskowiak7-Apr-17 8:22 
Questionsort element of sting in alphabetically order Pin
Member 131073484-Apr-17 23:28
Member 131073484-Apr-17 23:28 
SuggestionRe: sort element of sting in alphabetically order Pin
Jochen Arndt5-Apr-17 0:12
professionalJochen Arndt5-Apr-17 0:12 
GeneralRe: sort element of sting in alphabetically order Pin
Member 131073485-Apr-17 0:46
Member 131073485-Apr-17 0:46 
GeneralRe: sort element of sting in alphabetically order Pin
Jochen Arndt5-Apr-17 0:54
professionalJochen Arndt5-Apr-17 0:54 
GeneralRe: sort element of sting in alphabetically order Pin
Member 131073485-Apr-17 0:59
Member 131073485-Apr-17 0:59 
QuestionHow to subtract in VB with Access DB Pin
Landon Asis30-Mar-17 6:31
Landon Asis30-Mar-17 6:31 
So i have a accdb name itemdb with table name Products and i want to subtract the value input in the txtbox8 to the field name RegBal

so far i have this code

Imports System.Data.OleDb
Public Class Order

    Public conString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Landon-PC\Documents\Visual Studio 2010\Projects\Final\Final\bin\Debug\itemdb.accdb;Persist Security Info=False"
    Public con As New OleDbConnection


    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        con.ConnectionString = conString
        If con.State = ConnectionState.Closed Then
            con.Open()
            MsgBox("Connected")
        End If
    End Sub
    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            Dim sqlQuery As String = "SELECT itemdb.Products, Products.RegBal, Products.RegBal-  " & TextBox8.Text & "

            Dim sqlCommand As New OleDbCommand

            With sqlCommand
                .CommandText = sqlQuery
                .Connection = con
                .ExecuteNonQuery()
            End With
            MsgBox("SAVED")
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

    End Sub


    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Me.Close()
        Main.Show()

    End Sub
End Class

SuggestionRe: How to subtract in VB with Access DB Pin
Richard Deeming30-Mar-17 7:09
mveRichard Deeming30-Mar-17 7:09 
AnswerRe: How to subtract in VB with Access DB Pin
Michael_Davies30-Mar-17 8:49
Michael_Davies30-Mar-17 8:49 
Questionreference required to assembly.. Pin
Member 1103130430-Mar-17 1:39
Member 1103130430-Mar-17 1:39 
AnswerRe: reference required to assembly.. Pin
Eddy Vluggen2-Apr-17 0:46
professionalEddy Vluggen2-Apr-17 0:46 

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.