I have created a query in a database “Q_AktenListeSachbearbeiter” which takes the value from a form “F_Sachbearbeiter_Input” as criteria.
There is a relation between the table “Ordner_Liste”, which contains the desired data, and the table “SachbearbeiterSek”, which contains the clerk names.
In principle, it works, but I can’t get it that instead of the foreign key value “Sachbearbeiter_ID_F”, the actual name of the clerk is displayed in the query. If I include “SachbearbeiterSek.Sachbearbeiter” in the query, the query remains empty.
Does anyone have an Idea how to resolve the mystery ?
[
”’
Q_AktenListeSachbearbeiter Ereignisprozedur:
SELECT Ordner_Liste.Mandant_Nummer_F, Ordner_Liste.Sachbearbeiter_ID_F, Ordner_Liste.ArtUnterLID_F, Ordner_Liste.Eingetragen_Von_F, Ordner_Liste.U_Jahr, Ordner_Liste.U_Quart, Ordner_Liste.U_Monat, Ordner_Liste.Datum_Abgabe, Ordner_Liste.Datum_Weiterg, Ordner_Liste.Bearb_Fertig, Ordner_Liste.Abhol_Datum, Ordner_Liste.Akte_Retour, Ordner_Liste.AkteAnMandant
FROM Ordner_Liste
WHERE (((Ordner_Liste.Sachbearbeiter_ID_F)=[Forms]![F_Sachbearbeiter_Input]![SachbearbeiterName]));
”’
”’
Private Sub Call_AktenListeSachbearbeiter_Click()
DoCmd.OpenQuery “Q_AktenlisteSachbearbeiter”, acViewNormal
End Sub
Q_AktenListeSachbearbeiter Ereignisprozedur:
”’