G
Guest
Hi all..
I have a yes/no box on my form and when it is 'ticked' I want it to do a
calculation.
If it is not 'ticked' I want the value "0" to show.
this is the code i'm using..
-------------------
Private Sub Verwarmingstoeslag_GotFocus()
If Me![ja/nee verwarmingstoeslag] = False Then
[Verwarmingstoeslag] = "0"
Else:
[Verwarmingstoeslag] = [Standaard_waarden]![Verwarmingstoeslag_waarde] *
Me![Aantal_nachten]
End If
End sub
-----------------------
the first 'if' part works fine , however the second 'else' part gives me an
error..
Does anybody has any idea?
fyi..
[Standaard_waarden] = a table
[Verwarmingstoeslag_waarde] = a standard value which is defind in the
'Standaard waarden' table..
thnx!!
Arjan
I have a yes/no box on my form and when it is 'ticked' I want it to do a
calculation.
If it is not 'ticked' I want the value "0" to show.
this is the code i'm using..
-------------------
Private Sub Verwarmingstoeslag_GotFocus()
If Me![ja/nee verwarmingstoeslag] = False Then
[Verwarmingstoeslag] = "0"
Else:
[Verwarmingstoeslag] = [Standaard_waarden]![Verwarmingstoeslag_waarde] *
Me![Aantal_nachten]
End If
End sub
-----------------------
the first 'if' part works fine , however the second 'else' part gives me an
error..
Does anybody has any idea?
fyi..
[Standaard_waarden] = a table
[Verwarmingstoeslag_waarde] = a standard value which is defind in the
'Standaard waarden' table..
thnx!!
Arjan