Ich habe ein Problem mit dem Laden von Wert von Beschriftung Überschrift Spinbutton Wert und zurück. Ich habe einige Daten vom Bericht, aber ich brauche nur 6-8 Stunden vom Bericht, also machte ich Form, wo ich Anfangszeit und Endzeit (JJJJ, MM, TT HH: Millimeter) einstellen und dann löschen möchte Zeilen, wo ist nicht meine Zeit, so lade ich Jahr, Monat, Tag, Stunde und Minute als Now() zu Beschriftungen, dann brauche ich Beschriftung der Beschriftung zu Wert von SpinButton und dann muss ich ändern Beschriftung zu Wert, wie hat Drehknopf. Vielen Dank für Ihre Beiträge und sorry für mein Englisch;) Hier ist mein Code:Beschriftung Beschriftung zu Drehknopf Wert
Sub spust()
formtime.lblrok1.Caption = Format(Now, "yyyy")
formtime.lblmes1.Caption = Format(Now, "mm")
formtime.lblden1.Caption = Format(Now, "dd")
formtime.lblhod1.Caption = Format(Now, "hh")
formtime.lblmin1.Caption = Minute(Now)
If Len(formtime.lblmin1.Caption) = 1 Then
formtime.lblmin1.Caption = "0" & Minute(Now)
End If
formtime.lblrok2.Caption = Format(Now, "yyyy")
formtime.lblmes2.Caption = Format(Now, "mm")
formtime.lblden2.Caption = Format(Now, "dd")
formtime.lblhod2.Caption = Format(Now, "hh")
formtime.lblmin2.Caption = Minute(Now)
If Len(formtime.lblmin2.Caption) = 1 Then
formtime.lblmin2.Caption = "0" & Minute(Now)
End If
With formtime.spbutrok1
'my problem -> .Value = CInt(formtime.lblrok1.Caption)
.Min = 2010
.Max = 2030
End With
formtime.lblrok1.Caption = CStr(formtime.spbutrok1.Value)
formtime.Show
End Sub
Danke für Ihre Antwort - Ich bin Begginer, also so dumme Fehler;) –