Hi all!
I have made a NewForm and I want the field Kenteken (lookup field) to be filled automatic based on the users login info.
Table Klanten:
KlantNr (PK) = 1000
Zakelijk mailadres
Table Kentekens:
Kenteken (PK)
Bestuurder (LookUp) = 1000
Table SchadeDossiers (NewForm);
ID
Kenteken (Lookup)
So I want to check the users email with the Klant table to get the KlantNr. If I have the KlantNr I can look into the Kenteken table to get the kenteken matching with the KlantNr=Bestuurder. But I cannot get this to work.
This is one of the codesnippets I used:
LookUp(Kentekens, Value(Bestuurder) = LookUp(Klanten, 'zakelijk mailadres' = User().Email, KlantNr), Kenteken)
Can someone help me?
