Subversion Repositories Aluchemie.datataker

Rev

Rev 1 | Blame | Compare with Previous | Last modification | View Log | Download

VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form HDatabase 
   Caption         =   "Database van de blok informatie"
   ClientHeight    =   5985
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8385
   LinkTopic       =   "Form1"
   ScaleHeight     =   5985
   ScaleWidth      =   8385
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Refresh 
      Caption         =   "Refresh"
      Height          =   495
      Left            =   240
      TabIndex        =   2
      Top             =   5400
      Width           =   1215
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "C:\DataTaker\Historie.mdb"
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   4800
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "BlokInfo"
      Top             =   5520
      Visible         =   0   'False
      Width           =   1215
   End
   Begin VB.CommandButton Sluiten 
      Caption         =   "Sluiten"
      Height          =   495
      Left            =   6960
      TabIndex        =   1
      Top             =   5400
      Width           =   1215
   End
   Begin MSDBGrid.DBGrid HistorieDBGrid 
      Bindings        =   "Database.frx":0000
      Height          =   5175
      Left            =   240
      OleObjectBlob   =   "Database.frx":0014
      TabIndex        =   0
      Top             =   0
      Width           =   7935
   End
End
Attribute VB_Name = "HDatabase"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim DBS As DataBase
Dim RST As Recordset
'Dim DBS As New ADODB.Connection
'Dim RST As New ADODB.Recordset


Private Sub Form_Load()

'CompactJetDatabase ("Historie.mdb")

'Set DBS = OpenDatabase("Historie.mdb")
'Set RST = DBS.OpenRecordset("Blokinfo", dbOpenTable)
'SQLconnectionstring = "ODBC;DATABASE=datataker;DSN=datataker;UID=dt2005;PWD="
'DBS.CursorLocation = adUseServer
'DBS.ConnectionString = SQLconnectionstring
'DBS.Mode = adModeShareExclusive
'DBS.Open

'Set RST = DBS.OpenRecordset("Blokinfo", dbOpenDynaset, dbSeeChanges, dbPessimistic)
'Set RST.ActiveConnection = DBS
'RST.Open "select * from Blokinfo", DBS, adOpenKeyset, adLockPessimistic, adCmdText




Data1.DatabaseName = "Historie.mdb"
Data1.RecordSource = "blokinfo"
Data1.Refresh
HistorieDBGrid.Refresh
End Sub


Private Sub Form_Unload(Cancel As Integer)
RST.Close
Set RST = Nothing
DBS.Close
Set DBS = Nothing
'HistorieDBGrid.DataSource = ""
End Sub

Private Sub Refresh_Click()
Data1.Refresh
HistorieDBGrid.Refresh
End Sub

Private Sub Sluiten_Click()
Unload Me
End Sub