If statement if 'Work Email' Field is blank...
If statement if 'Work Email' Field is blank... in the Extensions table is blank, when I go to add a new extension the 'Related Employee' gets populated with dozens of Employee Names, until you enter an email address.
The Work Email (populates a Text-Email field) if the same as the HR-Employees Work Email field puts the HR-Employee name in the Related Field. As soon as any email address is added the Related Employee field will only show one employee name, of the matching Employee email address.
I would like to use an IF statement and from searching I see [Not IsNull) to check a field. It seems to me that is what I need to check for so that the new Extensions form Related Field stays blank until an email address is added.
This is the formula in the 'Related Employee' field in the Extensions table.
ToText(GetFieldValues(GetRecords("{12.EX.'" & [Text-email] &"'}",[_DBID_HR_EMPLOYEES]),68))
The image shows the field in the form blank, as soon as any text is entered in the email address, otherwise it's filled with all the employee names.
------------------------------
Bob T.
------------------------------