G
Guest
Condition:
I have two tables: “Price†and “Transactionâ€
In the Price Table, I have these fields: Date, Price1, Price2
In the Transaction Table, I have these fields: TranNum, TranType, TranDate,
Price
When I update the Transaction table using Form, for the Price field, I'd
like to retrieve the value from Price Table based on the following criteria:
If TranType = “S†and TranDate=Price.Date, use Price.Price1
Else if TranType = “B†and TranDate=Price.Date use Price.Price2
Question:
Q1. Should I use Expression or VB code?
Q2. How to write the query?
I have two tables: “Price†and “Transactionâ€
In the Price Table, I have these fields: Date, Price1, Price2
In the Transaction Table, I have these fields: TranNum, TranType, TranDate,
Price
When I update the Transaction table using Form, for the Price field, I'd
like to retrieve the value from Price Table based on the following criteria:
If TranType = “S†and TranDate=Price.Date, use Price.Price1
Else if TranType = “B†and TranDate=Price.Date use Price.Price2
Question:
Q1. Should I use Expression or VB code?
Q2. How to write the query?