J
Jean-Paul De Winter
On my report I have a field that calculates an age:
=IIf([datum1]<[Geboortedatum];Format([datum1];"yyyy")-Format([Geboortedatum];"yyyy");(Format([datum1];"yyyy")-Format([Geboortedatum];"yyyy"))-1)
This works perfect
I have this other field that should display a value depending on this age
Ex: if the age is 13 the the value should be 244
age=12 value should be 255
First question....
The value changes on every new page... so I wrote:
Private Sub Report_Page()
If Me!leeftijd = 13 Then
Me!normaal = "244"
End If
End Sub
I get an errormessage saying the types don't match...
What am I donig wrong?
=IIf([datum1]<[Geboortedatum];Format([datum1];"yyyy")-Format([Geboortedatum];"yyyy");(Format([datum1];"yyyy")-Format([Geboortedatum];"yyyy"))-1)
This works perfect
I have this other field that should display a value depending on this age
Ex: if the age is 13 the the value should be 244
age=12 value should be 255
First question....
The value changes on every new page... so I wrote:
Private Sub Report_Page()
If Me!leeftijd = 13 Then
Me!normaal = "244"
End If
End Sub
I get an errormessage saying the types don't match...
What am I donig wrong?