I have created a Quotation form, that has a main form frmQuotationHeader, and subform frmQuotationLineItems. I have a UnitPrice field that is populated on the afterupdate event of the product selection. Ideally I would have solved this issue with an unbound form, but given that I want the price to be saved for the future when that particular quotation number is opened, I cannot have UnitPrice calculated on the fly.
My issue is that when a user has created a quotation in currency USD, and the client comes back and says quotation needs to be in GBP, and I change the currency in the header with an exchange rate, I have not been able to figure out how to have the afterupdate event of the selection field activated throughout the subform. I can only manage to do it for teh line that has focus, not the others.
For now, I have to keep triggering the GotFocus event of a field in the subform, but that is incredibly in efficient and prone to mistakes if i do not trigger the event on any line of the subform.
Any way I can get ALL line items with new UnitPrice when I update the currency in the header, knowing that I cannot use an unbound field, as I have to store UnitPrice for the future.
My issue is that when a user has created a quotation in currency USD, and the client comes back and says quotation needs to be in GBP, and I change the currency in the header with an exchange rate, I have not been able to figure out how to have the afterupdate event of the selection field activated throughout the subform. I can only manage to do it for teh line that has focus, not the others.
For now, I have to keep triggering the GotFocus event of a field in the subform, but that is incredibly in efficient and prone to mistakes if i do not trigger the event on any line of the subform.
Any way I can get ALL line items with new UnitPrice when I update the currency in the header, knowing that I cannot use an unbound field, as I have to store UnitPrice for the future.