Click here to Skip to main content
15,896,375 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to INSERT multiple rows of data to sql table? Pin
Andy_L_J15-Nov-12 20:14
Andy_L_J15-Nov-12 20:14 
AnswerRe: How to INSERT multiple rows of data to sql table? Pin
April Fans19-Dec-12 17:43
April Fans19-Dec-12 17:43 
QuestionMemory required by a form Pin
Gagnon Claude30-Oct-12 1:35
Gagnon Claude30-Oct-12 1:35 
AnswerRe: Memory required by a form Pin
Eddy Vluggen30-Oct-12 2:38
professionalEddy Vluggen30-Oct-12 2:38 
AnswerRe: Memory required by a form Pin
Dave Kreskowiak30-Oct-12 7:07
mveDave Kreskowiak30-Oct-12 7:07 
GeneralRe: Memory required by a form Pin
Gagnon Claude30-Oct-12 13:24
Gagnon Claude30-Oct-12 13:24 
GeneralRe: Memory required by a form Pin
Dave Kreskowiak30-Oct-12 13:45
mveDave Kreskowiak30-Oct-12 13:45 
QuestionWhy can't i find a consistent set of examples for SQL and Linq Pin
Gerald Connolly29-Oct-12 11:51
Gerald Connolly29-Oct-12 11:51 
I am trying to write a simple WPF application in VB using Vs2010 and SQLExpress 2012, although i am not using any databinding.

The problem is that although i have found lots of examples of how to write code to read data from the database, some of it seems very complex and others real simple.
Now i want to update my DB and add (transaction log) records to it, i cannot find an example that works with my current setup. It can't be that difficult can it?

VB
Class MainWindow

    Dim dataEntities As MaxGateEntities = New MaxGateEntities
    Dim passno As String
    Dim passcnt As Integer
    Dim inout As String

    Private Sub Enter_Button_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)

        Dim Passes As ObjectQuery(Of Pass) = dataEntities.Passes
        Dim PassTransactions As ObjectQuery(Of Transaction) = dataEntities.Transactions

        passno = Me.PassNumber.Text

        Dim passQry = From pass In Passes Where pass.PassID = passno Select pass.InOut

        passcnt = passQry.Count

            For Each item In passQry
                inout = item.ToString
            Next
 


    End Sub
End Class

AnswerRe: Why can't i find a consistent set of examples for SQL and Linq Pin
Eddy Vluggen30-Oct-12 1:12
professionalEddy Vluggen30-Oct-12 1:12 
GeneralRe: Why can't i find a consistent set of examples for SQL and Linq Pin
Gerald Connolly30-Oct-12 3:42
Gerald Connolly30-Oct-12 3:42 
GeneralRe: Why can't i find a consistent set of examples for SQL and Linq Pin
Eddy Vluggen30-Oct-12 4:05
professionalEddy Vluggen30-Oct-12 4:05 
QuestionAttempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Kimhoy25-Oct-12 17:57
Kimhoy25-Oct-12 17:57 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Dave Kreskowiak25-Oct-12 18:29
mveDave Kreskowiak25-Oct-12 18:29 
GeneralRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Kimhoy25-Oct-12 19:37
Kimhoy25-Oct-12 19:37 
GeneralRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Dave Kreskowiak26-Oct-12 2:20
mveDave Kreskowiak26-Oct-12 2:20 
GeneralRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Kimhoy26-Oct-12 2:34
Kimhoy26-Oct-12 2:34 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Bernhard Hiller26-Oct-12 2:39
Bernhard Hiller26-Oct-12 2:39 
QuestionVB6 on Windows 7 Pin
Member 451235624-Oct-12 20:09
Member 451235624-Oct-12 20:09 
AnswerRe: VB6 on Windows 7 Pin
Eddy Vluggen24-Oct-12 23:21
professionalEddy Vluggen24-Oct-12 23:21 
AnswerRe: VB6 on Windows 7 Pin
Bernhard Hiller26-Oct-12 2:43
Bernhard Hiller26-Oct-12 2:43 
GeneralRe: VB6 on Windows 7 Pin
Member 451235629-Oct-12 18:42
Member 451235629-Oct-12 18:42 
AnswerRe: VB6 on Windows 7 Pin
Member 45123564-Dec-12 21:27
Member 45123564-Dec-12 21:27 
QuestionBinar array into user defined Type (How to?) Pin
Member 953964724-Oct-12 11:45
Member 953964724-Oct-12 11:45 
AnswerRe: Binar array into user defined Type (How to?) Pin
Eddy Vluggen24-Oct-12 23:19
professionalEddy Vluggen24-Oct-12 23:19 
QuestionVB.Net q Pin
khalid33323-Oct-12 23:30
khalid33323-Oct-12 23: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.