Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9

    Darlehensdatenbank Verknüpfung von Tabellen: Ergebnis zeigt alle Kombinationen

    Hallo liebe Community,


    ich baue gerade eine Datenbank für Darlehen auf und möchte die Informationen der Verträge mit den Bewegungen des jeweiligen Jahres verknüpfen, damit ich pro Jahr den korrekten Zinssatz für die jeweilige Tranche des Darlehens nachweisen kann.


    Einige der Kredite haben mehrere Tranchen mit unterschiedlichen Zinssätzen,


    wenn ich die folgende Abfrage ausführe:

    SELECT tab_ payment.Payment_borrower, Sum (tab_ payment.Payment_wert) AS SummevonPayment_wert, tab_ payment.Payment_tranche, tab_loan.Loan_Interest_01
    FROM tab_loan LEFT JOIN tab_ payment ON tab_loan.Loan_Borrower = tab_ Zahlungen.Payment_borrower
    GROUP BY tab_ Zahlungen.Payment_borrower, tab_ Zahlungen.Payment_tranche, tab_loan.Loan_Interest_01
    ORDER BY tab_ Zahlungen.Payment_borrower, tab_ Zahlungen.Payment_tranche;



    Bekomme ich ein Ergebnis mit allen möglichen Zinssätzen (siehe Anhang)




    Wie kann ich sicherstellen, dass nur ein Wert angezeigt wird?
    Click image for larger version. 

Name:	Screenshot 2025-04-03 181548.png 
Views:	35 
Size:	36.2 KB 
ID:	52916

    Hier nur für ein Unternehmen.

    Click image for larger version. 

Name:	Screenshot 2025-04-03 181610.png 
Views:	34 
Size:	13.9 KB 
ID:	52917

    Da ich noch ein Anfänger bin, habe ich möglicherweise etwas vergessen. Bitte haben Sie Geduld.

    Last edited by UZI_Berlin; 04-04-2025 at 12:52 AM.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Accidental post.
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    One language, English will be fine. Thank you.
    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

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Either drop the interest rate field from the query or change Group By to Max or something else.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9
    Das Ziel wäre ja, dass die Summe des DArlehens der jeweiligen Tranche berechnet wird und dann noch der aus dem Vertrag hervorgehende aktuelle Zinssatz.
    ich habe die Zahlungen wie gesagt in zwei Tabellen aufgeteilt:

    Verträge:

    Attachment 52923

    und die Zahlungen:
    Attachment 52924

    Das Ziel soll sein, das

    Gesellschaft Darlehensgeber | Gesellschaft Darlehensnehmer | Summe Darlehen | Payment Tranche | Zinssatz | Zins EUR (berechnete Spalte)

    um die letzte Spalte mache ich mir gerade keine Sorgen.
    Ich hoffe das hilft, Vielen DAnk

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Non comprende. Lo siento.
    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

  7. #7
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9
    Ich möchte gerne eine Abfrage mit dem Ergebnis haben, in dem folgende DAten ausgewiesen werden:
    - Darlehensnehmer
    - Summe pro Darlehenstranche / Aktueller stand DArlehen (Summe aller Auszahlungen / Rückzahlungen)
    - Ausweis aktueller Zinssatz der jeweiligen Tranche.

    Aktuell (siehe oben) zeigt er mir das zwar an aber für alle Zinssätze.
    Es muss doch eine Möglichkeit geben dies darzustellen.

  8. #8
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    If you want people to make time to look at your problem, it would be polite for you to make some minimal effort using google translate or another translate program to communicate in the language of this forum: English.

  9. #9
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Können Sie eine Kopie Ihrer Datenbank hochladen?

  10. #10
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9
    Quote Originally Posted by NoellaG View Post
    If you want people to make time to look at your problem, it would be polite for you to make some minimal effort using google translate or another translate program to communicate in the language of this forum: English.
    Fanny, i actually wrote everything in englisch, originally.
    I do Not know why it got translated

  11. #11
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    Your attachments are in a format that this website doesn't recognize. Can you try maybe Excel?

  12. #12
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9
    I am just trying to upload an excerpt of the data base


    lender | borrower| amount loan| Payment Tranche | interest rate (%)| Interest EUR (calculated column)

    thank you in advance.

  13. #13
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9
    Please find an excert of the data below

    Loan-Data
    Click image for larger version. 

Name:	Screenshot 2025-04-07 095023.png 
Views:	14 
Size:	22.7 KB 
ID:	52927

    Payments
    Click image for larger version. 

Name:	Screenshot 2025-04-07 095032.png 
Views:	14 
Size:	32.9 KB 
ID:	52928

    Query
    Click image for larger version. 

Name:	Screenshot 2025-04-07 095055.png 
Views:	14 
Size:	15.9 KB 
ID:	52929

    SQL of the query:
    SELECT tab_payments.Payment_Lender, tab_payments.Payment_borrower, Sum(tab_payments.Payment_wert) AS SummevonPayment_wert, tab_payments.Payment_tranche, tab_loan.Loan_Interest_01
    FROM tab_payments INNER JOIN tab_loan ON tab_payments.Payment_borrower = tab_loan.Loan_Borrower
    GROUP BY tab_payments.Payment_Lender, tab_payments.Payment_borrower, tab_payments.Payment_tranche, tab_loan.Loan_Interest_01
    ORDER BY tab_payments.Payment_borrower;

  14. #14
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    can you paste those Load Data and Payments to an excel workbook and upload the excel instead of
    a picture.

  15. #15
    UZI_Berlin is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    9
    I hope this works, I added a zip-file with the data-base


    Test.zip

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 02-26-2024, 10:34 AM
  2. zwei tabellen miteinander verbinden
    By gonzo82 in forum Access
    Replies: 5
    Last Post: 02-01-2011, 06:26 PM

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