change caption from report header Format event (runtime error)

C

cbo

Hello,

i'm trying to change a label's caption when receiving the "report header
format" event

the code only puts the value of a global variable (a collection) into
the caption (sorry, translated from french!) :

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
Me.MyLabel.Caption = MyVbModule.MyPublicVariable.Item("STARTDATE")
End Sub

This works fine on my PC, but on some other PCs, the following error
appears : "runtime error -2147352567 (8002009) : not enought memory to
run this operation, close some applications and try again"

any help greatly appreciated !
Chris
 

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