Results 1 to 4 of 4
  1. #1
    flux is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    5

    1:n relationship


    Hey there, I am currently struggling to create a proper 1:n relationship. I want to link the table "Termine" (Appointments) with the table "Kreditinstitut" (Bank). Both tables are linked with "BLZ/F-BLZ" (Bank number). However, there are no entries in the table "Termine" for "F-BLZ".

    In the end I want to create a subform of the table Termine where new appointments can be entered and will be linked to the bank. However, there is no proper connection with my current approach. When I enter a appointment in the subform it does show it for every bank and not only for the specific one.
    I did the exact same thing with the two other tables in the image and it works fine only this table is grinding my gears.


    Click image for larger version. 

Name:	image001.png 
Views:	11 
Size:	8.9 KB 
ID:	44130

    Hope one of you can help me with my problem. Thank you!

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,927
    Have you created the correct master and child properties for the subform control?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Have you set the "Link Master Fields" and the "Link Childs Fields" properties of the sub form correctly?
    BTW I notice you have a field called "ID" in table "Kreditinstitut". That name is often used for an Auto-Number type field. If it is an Auto-Number field, why don't you either use that as the Primary Key or delete it.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    flux is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    5
    Thank you so much! That was the problem

    Best regards

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 03-19-2015, 05:26 PM
  2. Replies: 1
    Last Post: 12-06-2014, 12:49 PM
  3. Replies: 1
    Last Post: 12-03-2014, 11:26 PM
  4. Help with a One to Many relationship
    By ByronSmith3 in forum Database Design
    Replies: 4
    Last Post: 09-13-2014, 04:30 PM
  5. Particular relationship
    By iib in forum Database Design
    Replies: 11
    Last Post: 01-17-2013, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums