Thanks Frank.
>> "ProductsPricing" is a subform that I want to read "q2" from.
>> This will work with the "msrp_price" because it is on the main form.
>> How do I define a variable for the subform and the oEvent statement?
> oSubForm = oForm.getByName( "ProductsPricing" ) or shorter
> oSubForm = oForm.ProductsPricing
That updates the fields but doesn't commit the changes to the database.
If I click on a field in the subform and then click my save macro it
will write the changes to the database. So I took the save macro code
and added it to my calc macro but get an error.
oSubForm.updateString(oW100, cWebPrice)
dispatcher =
createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(oSubForm, ".uno:RecSave", "", 0,
Array())
Thanks,
Tommy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]