-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm_frmPUEinstellungenSchulaufgabenNotenKlasse.cls
64 lines (50 loc) · 1.62 KB
/
Form_frmPUEinstellungenSchulaufgabenNotenKlasse.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "Form_frmPUEinstellungenSchulaufgabenNotenKlasse"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Compare Database
Option Explicit
Dim strSpalte As String
Dim strHalbjahr As String
Dim strDatum As String
Private Sub cmdAbbrechen_Click()
'Schließen ohne Speichern
On Error GoTo Err_cmdclose_Click
DOCMD.Close
Exit_cmdclose_Click:
Exit Sub
Err_cmdclose_Click:
MsgBox Err.Description
Resume Exit_cmdclose_Click
End Sub
Private Sub cmdSpeichern_Click()
' gib die Einstellungen in den globalen Variablen zurück
Forms("FrmNotenNachKlassen").RueckgabeAenderungUebernehmen = True
Forms("FrmNotenNachKlassen").RueckgabeKlasseDatum = Nz(Me.txtDatum, "")
cmdAbbrechen_Click
End Sub
Private Sub Form_Load()
'Höhe und Breite einstellen
Me.InsideHeight = Me.Section(acDetail).Height
Me.InsideWidth = Me.Width
End Sub
Private Sub Form_Open(Cancel As Integer)
Dim strValue As Variant
If Not IsNull(Me.OpenArgs) Then
strValue = Split(Me.OpenArgs, ";", , vbBinaryCompare)
strSpalte = strValue(0)
strHalbjahr = strValue(1)
strDatum = strValue(2)
Me.txtSpalte = strSpalte
Me.txtHalbjahr = strHalbjahr
Me.Caption = "Einstellungen Schulaufgabe " & strSpalte & " im " & strHalbjahr & ". Hj"
If Not IsNull(strDatum) And Not strDatum = "" Then
Me.txtDatum = strDatum
End If
End If
End Sub