Run-time error 2448 in Report_Activate

T

tonyd1509

I have a report that should generate an original invoice or a second,
third or final notice. Some of the fields on the report change based
on the value of a public variable indicating whether it's the first
notice, second, etc.

The relevant code in Report_Activate looks like this:
---------------------------------------
Select Case WhichInvoice
Case 1
Me!txtNotice.Value = "Annual Dues Notice"
Case 2
Me!txtNotice.Value = "Second Notice"
Case 3
Me!txtNotice.Value = "Third Notice"
Case 4
Me!txtNotice.Value = "Final Notice"
End Select
----------------------------------------

If I open the report in design view first, then click View, everything
is fine; no errors occur and the report displays and prints correctly.
But if I just open the report in Preview mode, I get a run-time error
2448 saying I can't assign a value to the object. What th'?

I'm using Access 2007, but the db is still Access 97 format, in case
that matters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top