Public Class FrmBrouwers
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents DaBrouwers As System.Data.OleDb.OleDbDataAdapter
    Friend WithEvents OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents ConBieren As System.Data.OleDb.OleDbConnection
    Friend WithEvents DsBrouwers1 As WindowsApplication3.DsBrouwers
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
    Friend WithEvents Btngegophalen As System.Windows.Forms.Button
    Friend WithEvents BtnEerste As System.Windows.Forms.Button
    Friend WithEvents BtnVorige As System.Windows.Forms.Button
    Friend WithEvents BtnVolgende As System.Windows.Forms.Button
    Friend WithEvents BtnLaatste As System.Windows.Forms.Button
    Friend WithEvents Label7 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Label1 = New System.Windows.Forms.Label
        Me.DaBrouwers = New System.Data.OleDb.OleDbDataAdapter
        Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand
        Me.ConBieren = New System.Data.OleDb.OleDbConnection
        Me.DsBrouwers1 = New WindowsApplication3.DsBrouwers
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.TextBox1 = New System.Windows.Forms.TextBox
        Me.Btngegophalen = New System.Windows.Forms.Button
        Me.TextBox2 = New System.Windows.Forms.TextBox
        Me.TextBox3 = New System.Windows.Forms.TextBox
        Me.TextBox4 = New System.Windows.Forms.TextBox
        Me.TextBox5 = New System.Windows.Forms.TextBox
        Me.TextBox6 = New System.Windows.Forms.TextBox
        Me.BtnEerste = New System.Windows.Forms.Button
        Me.BtnVorige = New System.Windows.Forms.Button
        Me.BtnVolgende = New System.Windows.Forms.Button
        Me.BtnLaatste = New System.Windows.Forms.Button
        Me.Label7 = New System.Windows.Forms.Label
        CType(Me.DsBrouwers1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label1.Location = New System.Drawing.Point(8, 8)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(112, 32)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "Brouwernr:"
        '
        'DaBrouwers
        '
        Me.DaBrouwers.SelectCommand = Me.OleDbSelectCommand1
        Me.DaBrouwers.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "Brouwers", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("BrouwerNr", "BrouwerNr"), New System.Data.Common.DataColumnMapping("Naam", "Naam"), New System.Data.Common.DataColumnMapping("Adres", "Adres"), New System.Data.Common.DataColumnMapping("PostCode", "PostCode"), New System.Data.Common.DataColumnMapping("Gemeente", "Gemeente"), New System.Data.Common.DataColumnMapping("Omzet", "Omzet"), New System.Data.Common.DataColumnMapping("Expr1", "Expr1")})})
        '
        'OleDbSelectCommand1
        '
        Me.OleDbSelectCommand1.CommandText = "SELECT Brouwers.BrouwerNr, Brouwers.Naam, Brouwers.Adres, Brouwers.PostCode, Geme" & _
        "enten.Gemeente, Brouwers.Omzet, Gemeenten.Postcode AS Expr1 FROM (Brouwers INNER" & _
        " JOIN Gemeenten ON Brouwers.PostCode = Gemeenten.Postcode)"
        Me.OleDbSelectCommand1.Connection = Me.ConBieren
        '
        'ConBieren
        '
        Me.ConBieren.ConnectionString = "Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database L" & _
        "ocking Mode=1;Data Source=""C:\Bieren.mdb"";Jet OLEDB:Engine Type=5;Provider=""Micr" & _
        "osoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist secu" & _
        "rity info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt Data" & _
        "base=False;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on" & _
        " Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet " & _
        "OLEDB:Global Bulk Transactions=1"
        '
        'DsBrouwers1
        '
        Me.DsBrouwers1.DataSetName = "DsBrouwers"
        Me.DsBrouwers1.Locale = New System.Globalization.CultureInfo("nl-BE")
        '
        'Label6
        '
        Me.Label6.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label6.Location = New System.Drawing.Point(8, 48)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(112, 32)
        Me.Label6.TabIndex = 5
        Me.Label6.Text = "Naam:"
        '
        'Label2
        '
        Me.Label2.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label2.Location = New System.Drawing.Point(8, 88)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(112, 32)
        Me.Label2.TabIndex = 6
        Me.Label2.Text = "Adres:"
        '
        'Label3
        '
        Me.Label3.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label3.Location = New System.Drawing.Point(8, 128)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(112, 32)
        Me.Label3.TabIndex = 7
        Me.Label3.Text = "Postcode:"
        '
        'Label4
        '
        Me.Label4.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label4.Location = New System.Drawing.Point(8, 168)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(112, 32)
        Me.Label4.TabIndex = 8
        Me.Label4.Text = "Gemeente:"
        '
        'Label5
        '
        Me.Label5.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label5.Location = New System.Drawing.Point(8, 208)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(112, 32)
        Me.Label5.TabIndex = 9
        Me.Label5.Text = "Omzet:"
        '
        'TextBox1
        '
        Me.TextBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.BrouwerNr"))
        Me.TextBox1.Location = New System.Drawing.Point(120, 8)
        Me.TextBox1.Name = "TextBox1"
        Me.TextBox1.Size = New System.Drawing.Size(128, 20)
        Me.TextBox1.TabIndex = 10
        Me.TextBox1.Text = ""
        '
        'Btngegophalen
        '
        Me.Btngegophalen.Location = New System.Drawing.Point(24, 256)
        Me.Btngegophalen.Name = "Btngegophalen"
        Me.Btngegophalen.Size = New System.Drawing.Size(128, 32)
        Me.Btngegophalen.TabIndex = 11
        Me.Btngegophalen.Text = "Gegevens ophalen"
        '
        'TextBox2
        '
        Me.TextBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Naam"))
        Me.TextBox2.Location = New System.Drawing.Point(120, 48)
        Me.TextBox2.Name = "TextBox2"
        Me.TextBox2.Size = New System.Drawing.Size(128, 20)
        Me.TextBox2.TabIndex = 12
        Me.TextBox2.Text = ""
        '
        'TextBox3
        '
        Me.TextBox3.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Adres"))
        Me.TextBox3.Location = New System.Drawing.Point(120, 96)
        Me.TextBox3.Name = "TextBox3"
        Me.TextBox3.Size = New System.Drawing.Size(128, 20)
        Me.TextBox3.TabIndex = 13
        Me.TextBox3.Text = ""
        '
        'TextBox4
        '
        Me.TextBox4.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.PostCode"))
        Me.TextBox4.Location = New System.Drawing.Point(120, 141)
        Me.TextBox4.Name = "TextBox4"
        Me.TextBox4.Size = New System.Drawing.Size(128, 20)
        Me.TextBox4.TabIndex = 14
        Me.TextBox4.Text = ""
        '
        'TextBox5
        '
        Me.TextBox5.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Gemeente"))
        Me.TextBox5.Location = New System.Drawing.Point(120, 176)
        Me.TextBox5.Name = "TextBox5"
        Me.TextBox5.Size = New System.Drawing.Size(128, 20)
        Me.TextBox5.TabIndex = 15
        Me.TextBox5.Text = ""
        '
        'TextBox6
        '
        Me.TextBox6.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DsBrouwers1, "Brouwers.Omzet"))
        Me.TextBox6.Location = New System.Drawing.Point(120, 216)
        Me.TextBox6.Name = "TextBox6"
        Me.TextBox6.Size = New System.Drawing.Size(128, 20)
        Me.TextBox6.TabIndex = 16
        Me.TextBox6.Text = ""
        '
        'BtnEerste
        '
        Me.BtnEerste.Location = New System.Drawing.Point(176, 256)
        Me.BtnEerste.Name = "BtnEerste"
        Me.BtnEerste.Size = New System.Drawing.Size(104, 32)
        Me.BtnEerste.TabIndex = 17
        Me.BtnEerste.Text = "Eerste "
        '
        'BtnVorige
        '
        Me.BtnVorige.Location = New System.Drawing.Point(296, 256)
        Me.BtnVorige.Name = "BtnVorige"
        Me.BtnVorige.Size = New System.Drawing.Size(104, 32)
        Me.BtnVorige.TabIndex = 18
        Me.BtnVorige.Text = "Vorige"
        '
        'BtnVolgende
        '
        Me.BtnVolgende.Location = New System.Drawing.Point(416, 256)
        Me.BtnVolgende.Name = "BtnVolgende"
        Me.BtnVolgende.Size = New System.Drawing.Size(104, 32)
        Me.BtnVolgende.TabIndex = 19
        Me.BtnVolgende.Text = "Volgende"
        '
        'BtnLaatste
        '
        Me.BtnLaatste.Location = New System.Drawing.Point(528, 256)
        Me.BtnLaatste.Name = "BtnLaatste"
        Me.BtnLaatste.Size = New System.Drawing.Size(104, 32)
        Me.BtnLaatste.TabIndex = 20
        Me.BtnLaatste.Text = "Laatste"
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(360, 48)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(168, 56)
        Me.Label7.TabIndex = 21
        Me.Label7.Text = "Record 1 van 18"
        '
        'FrmBrouwers
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(632, 302)
        Me.Controls.Add(Me.Label7)
        Me.Controls.Add(Me.BtnLaatste)
        Me.Controls.Add(Me.BtnVolgende)
        Me.Controls.Add(Me.BtnVorige)
        Me.Controls.Add(Me.BtnEerste)
        Me.Controls.Add(Me.TextBox6)
        Me.Controls.Add(Me.TextBox5)
        Me.Controls.Add(Me.TextBox4)
        Me.Controls.Add(Me.TextBox3)
        Me.Controls.Add(Me.TextBox2)
        Me.Controls.Add(Me.Btngegophalen)
        Me.Controls.Add(Me.TextBox1)
        Me.Controls.Add(Me.Label5)
        Me.Controls.Add(Me.Label4)
        Me.Controls.Add(Me.Label3)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.Label6)
        Me.Controls.Add(Me.Label1)
        Me.Name = "FrmBrouwers"
        Me.Text = "Overzicht Brouwers"
        CType(Me.DsBrouwers1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub

    Private Sub FrmBrouwers_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btngegophalen.Click
        DsBrouwers1.Clear()
        DaBrouwers.Fill(DsBrouwers1)
    End Sub

    Private Sub Eerste_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnEerste.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position = 0
    End Sub

    Private Sub BtnVorige_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnVorige.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position -= 1
    End Sub

    Private Sub BtnVolgende_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnVolgende.Click
        Me.BindingContext(DsBrouwers1, "Brouwers").Position += 1
    End Sub

    Private Sub BtnLaatste_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLaatste.Click

    End Sub

    Private Sub Label7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label7.TextChanged
        Label7Output.Text = "record" & _
        Me.BindingContext(DsBrouwers1, "Brouwers").Position + 1 & " van " & _
        Me.BindingContext(DsBrouwers1, "Brouwers").Count
    End Sub
End Class
