I have a main form and a subform. I need to populate a field based on the value of two other fields – one field resides in the main form and one field resides in the subform.
Mainform field: SaleType
Subform field: ProductType
Field to be populated (resides in the Subform): OrderNumber
Here’s the criteria:
If Mainform.SaleType = Existing
And if subform.ProductType = “Apples”
The subform.OrderNumber = “red”
What is the code for this and where would I put the code?
Thanks in advance.
Mainform field: SaleType
Subform field: ProductType
Field to be populated (resides in the Subform): OrderNumber
Here’s the criteria:
If Mainform.SaleType = Existing
And if subform.ProductType = “Apples”
The subform.OrderNumber = “red”
What is the code for this and where would I put the code?
Thanks in advance.