A
alpapak via AccessMonster.com
Birthday and Image
------------------------------------------------------------------------------
--
hi
i have a form with the field [Birthday] = Short day
and an image BirthDay_Eikona.
I want the image to be visible 10 days after [birthday] and 30 days before
[birthday]
i test the code :
If Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) > Now()
- 10 Or Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) <
Now() + 30 Then
Me.BirthDay_eikona.Visible = True
Else
Me.BirthDay_eikona.Visible = False
End If
But it doesn't work.
i manage to make it work when i change
If Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) > Now()
And Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) < Now
() + 30 Then
but i get [Birthday] from Now() and Now()+30
I want Now()-10 and Now()+30???
------------------------------------------------------------------------------
--
hi
i have a form with the field [Birthday] = Short day
and an image BirthDay_Eikona.
I want the image to be visible 10 days after [birthday] and 30 days before
[birthday]
i test the code :
If Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) > Now()
- 10 Or Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) <
Now() + 30 Then
Me.BirthDay_eikona.Visible = True
Else
Me.BirthDay_eikona.Visible = False
End If
But it doesn't work.
i manage to make it work when i change
If Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) > Now()
And Me.[birthday] + ((Int((Now() - [birthday]) / 365.25) + 1) * 365.25) < Now
() + 30 Then
but i get [Birthday] from Now() and Now()+30
I want Now()-10 and Now()+30???