Access-o-Mania

Access-Forum (Deutsch/German) => Formular => Thema gestartet von: pahiti78 am August 20, 2012, 20:55:36

Titel: Problem mit Formatierung
Beitrag von: pahiti78 am August 20, 2012, 20:55:36
Hallo Zusammen,

ich habe ein Problem mit einer Formatierung eines Textfeldes. Und zwar möchte ich falls im Textfeld2 ein bestimmter Wert steht, dass das textfeld4 eine bestimmte Formatierung hat.

Anbei mein Befehl:
Private Sub Text2_AfterUpdate(Cancel As Integer)
If Me.Text2.Value = "Auftragsnummer" Then
Me.Text4.Format = "##" / "####"
End If
End Sub

Kann mir jemand helfen?
Titel: Re: Problem mit Formatierung
Beitrag von: Beaker s.a. am August 20, 2012, 21:10:46
Hallo Pahiti,
Versuche
Me.Text4.Format = "## / ####"
So sieht es jedenfalls in der OH aus.
hth
gruss ekkehard
Titel: Re: Problem mit Formatierung
Beitrag von: pahiti78 am August 20, 2012, 21:26:55
Hallo Ekkehard,

haut leider nicht hin.
Titel: Re: Problem mit Formatierung
Beitrag von: bahasu am August 20, 2012, 22:29:59
N'abend,

vielleicht kommt das Beispiel im Anhang Deinem Ziel nahe.

Harald

[Anhang gelöscht durch Administrator]