C
Carl Seys
Guest
Depending a value in field of a record (grouped in the report), I would like to have a label filled-in a the moment of Format.
So the code should be something like :
Private Sub Details_Format (...)
if Me.StockStatus = 1 then Me.lblHeader.Caption = "New car"
if Me.StockStatus = 2 then Me.lblHeader.Caption = "Second Hand"
End Sub
Problem :
The method 'Caption' does not figure in the dropdownlist.
So how should I create a dynamic label in a report ?
(In a form, the Caption method is shown.)
So the code should be something like :
Private Sub Details_Format (...)
if Me.StockStatus = 1 then Me.lblHeader.Caption = "New car"
if Me.StockStatus = 2 then Me.lblHeader.Caption = "Second Hand"
End Sub
Problem :
The method 'Caption' does not figure in the dropdownlist.
So how should I create a dynamic label in a report ?
(In a form, the Caption method is shown.)