ironfelix717
Registered User.
- Local time
- Today, 10:16
- Joined
- Sep 20, 2019
- Messages
- 193
Hi, I have a reasonably complex query I am hoping to get help with.
Essentially, I need to match an order containing CustomerID and Version to a record that may exist in one of TWO tables, and get the STATUS field of the record.
I have worked around this in the past using an expression field in the query with IIF function, but I am looking for a much cleaner way of doing this and have a hard time imagining there isn't a simpler way.
Notes:**
The related CustomerID and version in orders will always exists in one of the two tables, but never simultaneously
The Customers_CURRENT table will always have the highest 'Version' field.
Thank you for any help!!!
Essentially, I need to match an order containing CustomerID and Version to a record that may exist in one of TWO tables, and get the STATUS field of the record.
I have worked around this in the past using an expression field in the query with IIF function, but I am looking for a much cleaner way of doing this and have a hard time imagining there isn't a simpler way.
Notes:**
The related CustomerID and version in orders will always exists in one of the two tables, but never simultaneously
The Customers_CURRENT table will always have the highest 'Version' field.
Thank you for any help!!!