{"id":55000640,"date":"2025-06-01T00:00:00","date_gmt":"2025-06-01T00:00:00","guid":{"rendered":"http:\/\/access-basics.de\/640"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T00:00:00","slug":"Formulare_basics_Probleme_mit_Form_und_Subform","status":"publish","type":"post","link":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html","title":{"rendered":"Formulare [basics]: Probleme mit Form und Subform"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vg07.met.vgwort.de\/na\/c0af13e9e3cd4c78b31092d493200be9\" width=\"1\" height=\"1\" alt=\"\"><\/p>\n<p class='introduction'>Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl&ouml;tzlich verschwinden Datens&auml;tze aus dem Unterformular oder es tauchen sp&auml;ter Datens&auml;tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl&uuml;sselfeld auf, die keinen Wert in diesem Feld haben. In beiden F&auml;llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun&auml;chst einmal an, wie wir diese Probleme reproduzieren k&ouml;nnen und schauen uns dann einen praktischen L&ouml;sungsans&auml;tze an.<\/p>\n<h2>Beispieldatenbank<\/h2>\n<p>Die Beispiele dieses Artikels findest Du in der Datenbank <b>FormulareBasics_Probleme-MitFormUndSubform.accdb<\/b>.<\/p>\n<h2>Probleme mit Haupt- und Unterformular<\/h2>\n<p>Das Problem, das wir hier vorstellen wollen, tritt beispielsweise folgenden Konstellationen auf:<\/p>\n<ul>\n<li>Wenn wir im Haupt- und Unterformular die Tabellen einer 1:n-Beziehung so abbilden, dass die Tabelle im Unterformular das Fremdschl&uuml;sselfeld der Beziehung enth&auml;lt.<\/li>\n<li>Wenn wir im Haupt- und Unterformular eine m:n-Beziehung abbilden, was letztlich auch wieder der Abbildung einer 1:n-Beziehung entspricht.<\/li>\n<\/ul>\n<p>Wir gehen als davon aus, dass im Unterformular die Daten einer Tabelle abgebildet werden wie zum Beispiel die Tabelle <b>tblAusleihen<\/b>, die &uuml;ber das Fremdschl&uuml;sselfeld <b>LeserID <\/b>mit der Tabelle <b>tblLeser <\/b>im Hauptformular verkn&uuml;pft ist.<\/p>\n<p>Dies sieht in der Entwurfsansicht wie in Bild 1 aus.<\/p>\n<p class=\"image\"><a rel=\"lightbox\" href=\"..\/tl_files\/images\/pic_640_001.png\"><img decoding=\"async\" src=\"..\/tl_files\/images\/pic_640_001.png\" alt=\"Formular-Entwurf unseres Beispielformulars\" width=\"325\" \/><\/a><\/p>\n<p class='imagetext'>Bild 1: Formular-Entwurf unseres Beispielformulars<\/p>\n<p>Voraussetzung daf&uuml;r, dass die Darstellung funktioniert, ist die Verkn&uuml;pfung der Daten der beiden Tabellen aus Haupt- und Unterformular auch &uuml;ber die beiden Eigenschaften <b>Verkn&uuml;pfen von <\/b>und <b>Verkn&uuml;pfen nach <\/b>des Unterformular-Steuerelements. Damit kommen wir zu dem potenziellen Problem: Wenn wir nun im Hauptformular einen neuen, leeren Datensatz anlegen, zeigt auch das Unterformular logischerweise noch keine Datens&auml;tze an (siehe Bild 2).<\/p>\n<p class=\"image\"><a rel=\"lightbox\" href=\"..\/tl_files\/images\/pic_640_002.png\"><img decoding=\"async\" src=\"..\/tl_files\/images\/pic_640_002.png\" alt=\"Haupt- und Unterformular mit einem neuen, leeren Datensatz\" width=\"325\" \/><\/a><\/p>\n<p class='imagetext'>Bild 2: Haupt- und Unterformular mit einem neuen, leeren Datensatz<\/p>\n<p>Wenn wir nun die eigentlich vorgesehene Reihenfolge einhalten und zuerst einen Datensatz im Hauptformular anlegen, wird dieser gespeichert, sobald wir zum Unterformular wechseln und somit das Hauptformular verlassen.<\/p>\n<p>Dies f&uuml;hrt wiederum dazu, dass im Fremdschl&uuml;sselfeld <b>LeserID <\/b>des Unterformulars automatisch der Prim&auml;rschl&uuml;sselwert des Datensatzes im Hauptformular eingetragen wird.<\/p>\n<p>Dies geschieht wiederum dadurch, dass wir &uuml;ber die beiden Eigenschaften <b>Verkn&uuml;pfen von <\/b>und <b>Verkn&uuml;pfen nach <\/b>des Unterformular-Steuerelements festgelegt haben, dass diese beiden Felder jeweils den gleichen Wert enthalten sollen.<\/p>\n<p>Legen wir also nun einen neuen Datensatz im Unterformular an, wird dieser auch als neuer Datensatz automatisch dem aktuellen Datensatz im Hauptformular zugeordnet, weil sein Fremdschl&uuml;sselfeld den Wert des Prim&auml;rschl&uuml;sselfeldes des Datensatzes im Hauptformular aufweist.<\/p>\n<h2>Problem bei Anlegen von Daten im Unterformular bei leerem Hauptformular<\/h2>\n<p>Wenn wir nun jedoch zu einem neuen, leeren Datensatz im Hauptformular wechseln und direkt zum Unterformular wechseln, ohne einen Datensatz im Hauptformular anzulegen, ist das dortige Fremdschl&uuml;sselfeld <b>LeserID <\/b>noch leer.<\/p>\n<p>Das f&uuml;hrt dazu, dass wir im Unterformular einen Datensatz anlegen, der im Fremdschl&uuml;sselfeld <b>LeserID <\/b>den Wert <b>Null <\/b>aufweist. Speichern wir diesen Datensatz nun, geschieht erst einmal nichts (siehe Bild 3).<\/p>\n<p class=\"image\"><a rel=\"lightbox\" href=\"..\/tl_files\/images\/pic_640_003.png\"><img decoding=\"async\" src=\"..\/tl_files\/images\/pic_640_003.png\" alt=\"Datensatz im Unterformular ohne Bindung zum Datensatz des Hauptformulars\" width=\"325\" \/><\/a><\/p>\n<p class='imagetext'>Bild 3: Datensatz im Unterformular ohne Bindung zum Datensatz des Hauptformulars<\/p>\n<div class=\"rcp_restricted\"><p><span style=\"color: #ff0000\">M&ouml;chten Sie weiterlesen? Dann l&ouml;sen Sie Ihr Ticket!<\/span><br \/>\n<span style=\"color: #ff0000\">Hier geht es zur Bestellung des Jahresabonnements des Magazins <strong>Access &#091;basics&#093;<\/strong>:<\/span><br \/>\n<span style=\"color: #ff0000\"><a style=\"color: #ff0000\" href=\"https:\/\/shop.minhorst.com\/magazine\/282\/access-basics?c=77\">Zur Bestellung ...<\/a><\/span><br \/>\n<span style=\"color: #ff0000\">Danach greifen Sie sofort auf <strong>alle rund 400 Artikel<\/strong> unseres Angebots zu - auch auf diesen hier!<\/span><br \/>\n<span style=\"color: #000000\">Oder haben Sie bereits Zugangsdaten? Dann loggen Sie sich gleich hier ein:<\/span><\/p>\n<\/div>\n\n\t\n\t<form id=\"rcp_login_form\"  class=\"rcp_form\" method=\"POST\" action=\"https:\/\/access-basics.de\/data\/wp\/v2\/posts\/55000640\/\">\n\n\t\t\n\t\t<fieldset class=\"rcp_login_data\">\n\t\t\t<p>\n\t\t\t\t<label for=\"rcp_user_login\">Username or Email<\/label>\n\t\t\t\t<input name=\"rcp_user_login\" id=\"rcp_user_login\" class=\"required\" type=\"text\"\/>\n\t\t\t<\/p>\n\t\t\t<p>\n\t\t\t\t<label for=\"rcp_user_pass\">Passwort<\/label>\n\t\t\t\t<input name=\"rcp_user_pass\" id=\"rcp_user_pass\" class=\"required\" type=\"password\"\/>\n\t\t\t<\/p>\n\t\t\t\t\t\t<p>\n\t\t\t\t<input type=\"checkbox\" name=\"rcp_user_remember\" id=\"rcp_user_remember\" value=\"1\"\/>\n\t\t\t\t<label for=\"rcp_user_remember\">Angemeldet bleiben<\/label>\n\t\t\t<\/p>\n\t\t\t<p class=\"rcp_lost_password\"><a href=\"\/index.php\/data\/wp\/v2\/posts\/55000640?rcp_action=lostpassword\"><\/a><\/p>\n\t\t\t<p>\n\t\t\t\t<input type=\"hidden\" name=\"rcp_action\" value=\"login\"\/>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"rcp_redirect\" value=\"https:\/\/access-basics.de\/data\/wp\/v2\/posts\/55000640\/\"\/>\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"rcp_login_nonce\" value=\"6525a30b2b\"\/>\n\t\t\t\t<input id=\"rcp_login_submit\" class=\"rcp-button\" type=\"submit\" value=\"Anmelden\"\/>\n\t\t\t<\/p>\n\t\t\t\t\t<\/fieldset>\n\n\t\t\n\t<\/form>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl&ouml;tzlich verschwinden Datens&auml;tze aus dem Unterformular oder es tauchen sp&auml;ter Datens&auml;tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl&uuml;sselfeld auf, die keinen Wert in diesem Feld haben. In beiden F&auml;llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun&auml;chst einmal an, wie wir diese Probleme reproduzieren k&ouml;nnen und schauen uns dann einen praktischen L&ouml;sungsans&auml;tze an.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[66012025,66022025,662025,66032025,44000004],"tags":[],"class_list":["post-55000640","post","type-post","status-publish","format-standard","hentry","category-66012025","category-66022025","category-662025","category-66032025","category-Formulare_fuer_die_Dateneingabe"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andr\u00e9 Minhorst\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Access [basics] - DAS ACCESS-MAGAZIN F\u00dcR ALLE, DIE VON 0 AUF 100 WOLLEN\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Formulare [basics]: Probleme mit Form und Subform - Access [basics]\" \/>\n\t\t<meta property=\"og:description\" content=\"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t\t<meta property=\"og:image:height\" content=\"127\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-06-01T00:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"-001-11-30T00:00:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Formulare [basics]: Probleme mit Form und Subform - Access [basics]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#blogposting\",\"name\":\"Formulare [basics]: Probleme mit Form und Subform - Access [basics]\",\"headline\":\"Formulare [basics]: Probleme mit Form und Subform\",\"author\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/author\\\/andreminhorst-com#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/vg07.met.vgwort.de\\\/na\\\/c0af13e9e3cd4c78b31092d493200be9\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html\\\/#articleImage\"},\"datePublished\":\"2025-06-01T00:00:00+00:00\",\"dateModified\":\"-0001-11-30T00:00:00+00:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#webpage\"},\"articleSection\":\"1\\\/2025, 2\\\/2025, 2025, 3\\\/2025, Formulare f&uuml;r die Dateneingabe\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/access-basics.de\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025#listItem\",\"name\":\"2025\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025#listItem\",\"position\":2,\"name\":\"2025\",\"item\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025\\\/1\\\/2025#listItem\",\"name\":\"1\\\/2025\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025\\\/1\\\/2025#listItem\",\"position\":3,\"name\":\"1\\\/2025\",\"item\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025\\\/1\\\/2025\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#listItem\",\"name\":\"Formulare [basics]: Probleme mit Form und Subform\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025#listItem\",\"name\":\"2025\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#listItem\",\"position\":4,\"name\":\"Formulare [basics]: Probleme mit Form und Subform\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/category\\\/2025\\\/1\\\/2025#listItem\",\"name\":\"1\\\/2025\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/#organization\",\"name\":\"Access [basics]\",\"description\":\"DAS ACCESS-MAGAZIN F\\u00dcR ALLE, DIE VON 0 AUF 100 WOLLEN\",\"url\":\"https:\\\/\\\/access-basics.de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/access-basics.de\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/logo400.png\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html\\\/#organizationLogo\",\"width\":400,\"height\":127},\"image\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/author\\\/andreminhorst-com#author\",\"url\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/author\\\/andreminhorst-com\",\"name\":\"Andr\\u00e9 Minhorst\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b9d010cf1716692cb9c34f21554e07d17d461acaea5b61b8cb21cbec678d48a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andr\\u00e9 Minhorst\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#webpage\",\"url\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html\",\"name\":\"Formulare [basics]: Probleme mit Form und Subform - Access [basics]\",\"description\":\"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\\u00f6tzlich verschwinden Datens\\u00e4tze aus dem Unterformular oder es tauchen sp\\u00e4ter Datens\\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\\u00f6nnen und schauen uns dann einen praktischen L\\u00f6sungsans\\u00e4tze an.\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/Formulare_basics_Probleme_mit_Form_und_Subform.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/author\\\/andreminhorst-com#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/index.php\\\/author\\\/andreminhorst-com#author\"},\"datePublished\":\"2025-06-01T00:00:00+00:00\",\"dateModified\":\"-0001-11-30T00:00:00+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/access-basics.de\\\/#website\",\"url\":\"https:\\\/\\\/access-basics.de\\\/\",\"name\":\"Access [basics]\",\"description\":\"DAS ACCESS-MAGAZIN F\\u00dcR ALLE, DIE VON 0 AUF 100 WOLLEN\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/access-basics.de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Formulare [basics]: Probleme mit Form und Subform - Access [basics]","description":"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.","canonical_url":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#blogposting","name":"Formulare [basics]: Probleme mit Form und Subform - Access [basics]","headline":"Formulare [basics]: Probleme mit Form und Subform","author":{"@id":"https:\/\/access-basics.de\/index.php\/author\/andreminhorst-com#author"},"publisher":{"@id":"https:\/\/access-basics.de\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/vg07.met.vgwort.de\/na\/c0af13e9e3cd4c78b31092d493200be9","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html\/#articleImage"},"datePublished":"2025-06-01T00:00:00+00:00","dateModified":"-0001-11-30T00:00:00+00:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#webpage"},"isPartOf":{"@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#webpage"},"articleSection":"1\/2025, 2\/2025, 2025, 3\/2025, Formulare f&uuml;r die Dateneingabe"},{"@type":"BreadcrumbList","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/access-basics.de\/#listItem","position":1,"name":"Home","item":"https:\/\/access-basics.de\/","nextItem":{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/category\/2025#listItem","name":"2025"}},{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/category\/2025#listItem","position":2,"name":"2025","item":"https:\/\/access-basics.de\/index.php\/category\/2025","nextItem":{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/category\/2025\/1\/2025#listItem","name":"1\/2025"},"previousItem":{"@type":"ListItem","@id":"https:\/\/access-basics.de\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/category\/2025\/1\/2025#listItem","position":3,"name":"1\/2025","item":"https:\/\/access-basics.de\/index.php\/category\/2025\/1\/2025","nextItem":{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#listItem","name":"Formulare [basics]: Probleme mit Form und Subform"},"previousItem":{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/category\/2025#listItem","name":"2025"}},{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#listItem","position":4,"name":"Formulare [basics]: Probleme mit Form und Subform","previousItem":{"@type":"ListItem","@id":"https:\/\/access-basics.de\/index.php\/category\/2025\/1\/2025#listItem","name":"1\/2025"}}]},{"@type":"Organization","@id":"https:\/\/access-basics.de\/#organization","name":"Access [basics]","description":"DAS ACCESS-MAGAZIN F\u00dcR ALLE, DIE VON 0 AUF 100 WOLLEN","url":"https:\/\/access-basics.de\/","logo":{"@type":"ImageObject","url":"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html\/#organizationLogo","width":400,"height":127},"image":{"@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/access-basics.de\/index.php\/author\/andreminhorst-com#author","url":"https:\/\/access-basics.de\/index.php\/author\/andreminhorst-com","name":"Andr\u00e9 Minhorst","image":{"@type":"ImageObject","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1b9d010cf1716692cb9c34f21554e07d17d461acaea5b61b8cb21cbec678d48a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andr\u00e9 Minhorst"}},{"@type":"WebPage","@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#webpage","url":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html","name":"Formulare [basics]: Probleme mit Form und Subform - Access [basics]","description":"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/access-basics.de\/#website"},"breadcrumb":{"@id":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html#breadcrumblist"},"author":{"@id":"https:\/\/access-basics.de\/index.php\/author\/andreminhorst-com#author"},"creator":{"@id":"https:\/\/access-basics.de\/index.php\/author\/andreminhorst-com#author"},"datePublished":"2025-06-01T00:00:00+00:00","dateModified":"-0001-11-30T00:00:00+00:00"},{"@type":"WebSite","@id":"https:\/\/access-basics.de\/#website","url":"https:\/\/access-basics.de\/","name":"Access [basics]","description":"DAS ACCESS-MAGAZIN F\u00dcR ALLE, DIE VON 0 AUF 100 WOLLEN","inLanguage":"de-DE","publisher":{"@id":"https:\/\/access-basics.de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"Access [basics] - DAS ACCESS-MAGAZIN F\u00dcR ALLE, DIE VON 0 AUF 100 WOLLEN","og:type":"article","og:title":"Formulare [basics]: Probleme mit Form und Subform - Access [basics]","og:description":"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.","og:url":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html","og:image":"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png","og:image:secure_url":"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png","og:image:width":400,"og:image:height":127,"article:published_time":"2025-06-01T00:00:00+00:00","article:modified_time":"-001-11-30T00:00:00+00:00","twitter:card":"summary_large_image","twitter:title":"Formulare [basics]: Probleme mit Form und Subform - Access [basics]","twitter:description":"Nutzen wir ein Haupt- und ein Unterformular zur Darstellung von Daten aus 1:n- oder m:n-Beziehungen, kann es zu unerwarteten Problem kommen: Pl\u00f6tzlich verschwinden Datens\u00e4tze aus dem Unterformular oder es tauchen sp\u00e4ter Datens\u00e4tze in der Tabelle mit dem an der Beziehung beteiligten Fremdschl\u00fcsselfeld auf, die keinen Wert in diesem Feld haben. In beiden F\u00e4llen kann es sein, dass eine unbewusste Fehlbedienung des Gespanns aus Haupt- und Unterformular verantwortlich ist. In diesem Artikel schauen wir uns zun\u00e4chst einmal an, wie wir diese Probleme reproduzieren k\u00f6nnen und schauen uns dann einen praktischen L\u00f6sungsans\u00e4tze an.","twitter:image":"https:\/\/access-basics.de\/wp-content\/uploads\/2021\/02\/logo400.png"},"aioseo_meta_data":{"post_id":"55000640","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2025-02-23 17:26:08","updated":"2026-10-19 17:30:00","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/access-basics.de\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/access-basics.de\/index.php\/category\/2025\" title=\"2025\">2025<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/access-basics.de\/index.php\/category\/2025\/1\/2025\" title=\"1\/2025\">1\/2025<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tFormulare &#91;basics&#93;: Probleme mit Form und Subform\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/access-basics.de\/"},{"label":"2025","link":"https:\/\/access-basics.de\/index.php\/category\/2025"},{"label":"1\/2025","link":"https:\/\/access-basics.de\/index.php\/category\/2025\/1\/2025"},{"label":"Formulare [basics]: Probleme mit Form und Subform","link":"https:\/\/access-basics.de\/index.php\/Formulare_basics_Probleme_mit_Form_und_Subform.html"}],"_links":{"self":[{"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/posts\/55000640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/comments?post=55000640"}],"version-history":[{"count":0,"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/posts\/55000640\/revisions"}],"wp:attachment":[{"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/media?parent=55000640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/categories?post=55000640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/access-basics.de\/index.php\/data\/wp\/v2\/tags?post=55000640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}