Ich möchte einen Formular Pfad in eine Var schreiben.
VAR_Form_input = "[FM_fahrtenbuch_eingabeform]"
Das geht wunderbar.
nun möchte ich in einem Anderen Form die Feld Angaben wie zum Bsp.:
VAR_von_ort = Forms![FM_Patient_suchen].list_patienten.Column(4)
ändern in
VAR_von_ort = VAR_Form_input.list_patienten.Column(4)
oder
DoCmd.Close acForm, "Forms![FM_Patient_suchen]"
in
DoCmd.Close acForm, VAR_FORM_input
Viel gegoogelt nix funktionierendes gefunden.
Hallo,
Forms(VAR_Form_input).list_patienten.Column(4)
oder, damit Du siehst, dass es auch mit Controls geht
Forms(VAR_Form_input).Controls(DeineStringVariable).Column(4)
DoCmd.Close acForm, Forms(VAR_Form_input)
hth
gruss ekkehard
Hallo,
wobei da die Eckklammern nicht von Vorteil sind:
Dim str_Form_input as String
str_Form_input = "FM_fahrtenbuch_eingabeform"