K
Kevin Sellers
I am looking for a method to change a report caption (at runtime). I have a
lab information system designed for a pathology lab and would like the
report display window to display the case number rather than a generic case
report caption. I know that this involves changing the caption property of
the report to the specific value I want displayed, but have been unable to
use vba to affect the change. I have tries using the allreports collection
to change the caption property of the report that I want to display, and I
have tried to use the on activation event to affect the caption change. Each
time I run the code, I receive an error with the description cannot change
the property of a control unless it has focus. Since the caption property is
not related to any control but the is related to the report object itself, I
see no way to use SetFocus to affect the caption property change. Any
suggestions would be greatly appreciated.
Kevin Sellers
lab information system designed for a pathology lab and would like the
report display window to display the case number rather than a generic case
report caption. I know that this involves changing the caption property of
the report to the specific value I want displayed, but have been unable to
use vba to affect the change. I have tries using the allreports collection
to change the caption property of the report that I want to display, and I
have tried to use the on activation event to affect the caption change. Each
time I run the code, I receive an error with the description cannot change
the property of a control unless it has focus. Since the caption property is
not related to any control but the is related to the report object itself, I
see no way to use SetFocus to affect the caption property change. Any
suggestions would be greatly appreciated.
Kevin Sellers