I was hoping someone might be able to tell me how I can dynamically code in the modification to a fields control source.
I have a (numeric) field in my report. When the report opens I have (VB Code) an if statement that checks if something is true or false. If it is true, I want it to set the Control Source =0, and if not, set the Control Source =some other value.
It seems I am unable to figure out how the synax works for this, as it keeps giving me the message
"Object doesn't support this method or property"
but if i go into the objects properties... sure enough the second property is the control source.
Ant enlightenment would be much appreciated
(I already figured out how to do this in forms, for the RowSource property)
I have a (numeric) field in my report. When the report opens I have (VB Code) an if statement that checks if something is true or false. If it is true, I want it to set the Control Source =0, and if not, set the Control Source =some other value.
It seems I am unable to figure out how the synax works for this, as it keeps giving me the message
"Object doesn't support this method or property"
but if i go into the objects properties... sure enough the second property is the control source.
Ant enlightenment would be much appreciated
(I already figured out how to do this in forms, for the RowSource property)