gmaxey
06-21-2024, 07:41 AM
I have a table (lets call is tblTest) with a role field. For simplicity the roles are A and B. For each record in the table one person performs role A and another person performs role B. In this same table there is an "A Due Date" and a "B Due date" field.
In a query, I need as single "Due_Date" field (there is no actual field named "Due Date" in the table) such that if the Role is "A" then the date returned is "A Due Date" and if the role is "B" the date returned is "B Due Date"
Something like If tblTest.Role = "A" Then tblTest.A_Due_Date Else tblText.A_Due_Date
How would I write this expression and how do I get the "Due Date" field to show in the query?
Thank you.
In a query, I need as single "Due_Date" field (there is no actual field named "Due Date" in the table) such that if the Role is "A" then the date returned is "A Due Date" and if the role is "B" the date returned is "B Due Date"
Something like If tblTest.Role = "A" Then tblTest.A_Due_Date Else tblText.A_Due_Date
How would I write this expression and how do I get the "Due Date" field to show in the query?
Thank you.