Modifying controls on a report

dsmaj

Registered User.
Local time
Yesterday, 22:26
Joined
Apr 28, 2004
Messages
96
I'm having a wierd problem trying to modify either labels or textboxes on my reports. It's acting as if I'm not aloud to modify control properties at run-time from code. Is this an Access restriction on reports, or is something else going on? I'm just getting runtime errors when I try to run the report, for example, with a lblWhatever.caption = "test" in the Report onload event.

Thanks for any help,
Sam
 
Same prob. I'm getting "Can't assign value to this object"

To confirm though...I SHOULD be able to modify controls on a report from code in the same way that I modify controls on forms from code, is that right?

Any ideas?
Sam
 
Rich said:
depends what you mean by modify?

Like the example above....should I be able to do

Me!lblTitle.Caption = "Whatever"
OR
Me!txtTitle.value = "Whatever..."

in the on open even of a Report? Or even within some other routine within a Report? As it stands, I can't do any of that, and I'm trying to determine if this is some kind of weird reaction Access is having to something I've done within my project, or if it's just a restriction within Access. I've never done Reports with access before, so I really have no idea.

Thanks for the help,
Sam
 
Hey thanks for the interest Rich....I've solved the problem. As it turns out, it must have been some sort of bizzare quirk in access. I just copied all the controls of my Report to a new Report, and it works now. This has worked in the past for me with corrupt forms as well.

Thanks,
Sam
 

Users who are viewing this thread

Back
Top Bottom