Access-o-Mania

Access-Forum (Deutsch/German) => Formular => Thema gestartet von: Ratoncito am Mai 20, 2022, 16:27:54

Titel: Focus aus einem Unterformular auf ein anderes Unterformular setzen.
Beitrag von: Ratoncito am Mai 20, 2022, 16:27:54
Hallo,
ich habe ein Formular frmA mit 2 Ufos sfmX und sfmY. Auf jedem Ufo ist jeweils ein Textfeld, txtX und txtY.

Mit
    Me.sfmX.SetFocus
    Me.[Form]![sfmX]![txtX].SetFocus
kann ich den Focus auf das Textfeld im ersten Ufo setzen und meine Eingabe machen.

Frage:
Wie kann ich von dort den Focus auf das Textfeld txtY im Ufo sfmY setzen?

Vielen Dank für Eure Hilfe - Wolfgang




möchte von einem Formular den Focus auf ein Textfeld in einem Unterformular setzen, eine Eingabe machen und von dort den Focus auf ein anderes Textfeld in einem
Titel: Re: Focus aus einem Unterformular auf ein anderes Unterformular setzen.
Beitrag von: Beaker s.a. am Mai 20, 2022, 18:23:35
In sfrmx
Me.Parent.Controls("ControlnameVonsfrmy").SetFocus
Me.Parent.Controls("ControlnameVonsfrmy").Form.Controls("txty").SetFocus
Schaust du auch hier (https://www.donkarl.com?FAQ4.2).
Titel: Re: Focus aus einem Unterformular auf ein anderes Unterformular setzen.
Beitrag von: Ratoncito am Mai 20, 2022, 20:16:29
@ Beaker s.a.

Vielen Dank, so funktionierts.

Liebe Grüße und ein schönes Wochenende - Wolfgang