R
Raymond Chiu
Dear all,
I have written some code on my report.Activate() event function
Dim color As Long
DoCmd.MoveSize 0, 0, 10500, 6350
Set pb = New clsPictureBox
pb.ImageControl = Me.Image0
pb.ImageForm = Me
pb.Clear
ScaleAmt = 1
color = RGB(RndInt(256), RndInt(256), RndInt(256))
pb.DrawLine 125, 125, 50, 50, color
It prompt the error in : pb.imagecontrol=me.image0
and is the statement in : pb.imageform= me, correct?
as The image0 is on the report
I have written some code on my report.Activate() event function
Dim color As Long
DoCmd.MoveSize 0, 0, 10500, 6350
Set pb = New clsPictureBox
pb.ImageControl = Me.Image0
pb.ImageForm = Me
pb.Clear
ScaleAmt = 1
color = RGB(RndInt(256), RndInt(256), RndInt(256))
pb.DrawLine 125, 125, 50, 50, color
It prompt the error in : pb.imagecontrol=me.image0
and is the statement in : pb.imageform= me, correct?
as The image0 is on the report