home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
bp_6_93
/
vbwin
/
vbaccess
/
info.frm
< prev
next >
Wrap
Text File
|
1995-02-26
|
3KB
|
110 lines
VERSION 2.00
Begin Form frmInfo
BackColor = &H8000000F&
BorderStyle = 3 'Fixed Double
Caption = "Info"
ClientHeight = 1650
ClientLeft = 1515
ClientTop = 3900
ClientWidth = 6000
ControlBox = 0 'False
Height = 2055
Left = 1455
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1650
ScaleWidth = 6000
Top = 3555
Width = 6120
Begin Frame Frame1
BackColor = &H00C0C0C0&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1620
Left = 60
TabIndex = 0
Top = -45
Width = 5880
Begin Timer Timer1
Enabled = 0 'False
Interval = 3000
Left = 5250
Top = 1110
End
Begin Label Label1
Alignment = 2 'Center
BackColor = &H8000000F&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
Height = 1230
Left = 120
TabIndex = 1
Top = 240
Width = 5625
End
End
End
Option Explicit
Sub Form_Activate ()
'▄bergabeprogramm mu▀ Tag belegen
Dim sTitel As String
Dim sMsg As String
Dim iDgDef As Integer
Dim iResponse As Integer
Dim sText As String
Dim iError As Integer
Select Case frmInfo.Tag
Case INFO_COMPACT
Me.Caption = "Datenbank-Verdichtung"
Label1 = "Es wird eine Verdichtung auf die vorhandene Datenbank durchgefⁿhrt." + NL + NL + "Bitte um Geduld ! Bitte nicht unterbrechen !"
Me.Refresh
CompactDatabase sVOldfile, sVNewFile
Case INFO_REPAIR
On Error GoTo Rep_Errorhandler
Me.Caption = "Datenbank-Reparatur"
Label1 = "Es wird eine Reparatur auf die vorhandene Datenbank durchgefⁿhrt." + NL + NL + "Bitte um Geduld ! Bitte nicht unterbrechen !"
Me.Refresh
RepairDatabase sMdb
End Select
If iError = False Then
Timer1.Enabled = True
Else
Unload Me
End If
Exit Sub
Rep_Errorhandler:
If Err = 3051 Or Err = 3000 Then 'Try to open file exclusivly, but its open
sTitel = "Reparatur fehlgeschlagen !"
sMsg = "Datenbank kann nicht repariert werden, da sie von einem anderen Benutzer bereits ge÷ffnet ist !" + NL
sMsg = sMsg + "Zum nochmaligen Reparatur-Versuch alle Zugriffe beenden und Reparatur nochmals starten !"
iDgDef = MB_OK + MB_ICONSTOP ' Describe dialog.
iResponse = MsgBox(sMsg, iDgDef, sTitel) ' Get user response.
iError = True
Resume Next
End If
End Sub
Sub Form_Load ()
CenterForm Me
End Sub
Sub Timer1_Timer ()
Timer1.Enabled = False
Unload Me
End Sub