G
Guest
I have a control on a form/sub-form. I am trying to calculate a control based on the values of other controls on the form. I can not use expression builder because there is some complex if logic. I have my code in the form_current event
Here are some of the various things I have tried
maxfieldname < (Me![fieldname] + 0
maxfieldname < (Me![fieldname].value + 0
maxfieldname < forms!frmMain!sfrmSub.form!fieldnam
maxfieldname < forms!frmMain!sfrmSub.form!fieldname.valu
When I run any of these combinations I get a run-time error You entered an expression that has no value. I suspect I should be putting this code in a different event. Also, all the fields on the form are read only. Any help would be greatly appreciated. Thank you
David
Here are some of the various things I have tried
maxfieldname < (Me![fieldname] + 0
maxfieldname < (Me![fieldname].value + 0
maxfieldname < forms!frmMain!sfrmSub.form!fieldnam
maxfieldname < forms!frmMain!sfrmSub.form!fieldname.valu
When I run any of these combinations I get a run-time error You entered an expression that has no value. I suspect I should be putting this code in a different event. Also, all the fields on the form are read only. Any help would be greatly appreciated. Thank you
David