Hi I have a table for employee documents including field doctype. Doctype is linked to another table Doctypes from which the corect document type an be selectes Passort or ID card.
Also a query based on that.
I can make the query to chose records based on criteria so that for example only Employee records with passport entries are chosen.
But how to make the query work so that if Passport data is absent then employee records with ID card are chosen.
Also if employee has both documents then only Passport data is cosen and not both.
Cant figure it out anyhow.
Also a query based on that.
I can make the query to chose records based on criteria so that for example only Employee records with passport entries are chosen.
But how to make the query work so that if Passport data is absent then employee records with ID card are chosen.
Also if employee has both documents then only Passport data is cosen and not both.
Cant figure it out anyhow.