CHAOSinACT
Registered User.
- Local time
- Today, 21:11
- Joined
- Mar 18, 2009
- Messages
- 235
i have a datasheet(see attached jpgs if ya like) which if you click on the "description" field will open the relevant form with the record. simple....so far lol.
this was easy; a simple onclick macro solved it. now i need to adjust the color of description based on the time it was entered - over 14 days i need the blue link to go red.
that means i need to check the data for each record in the "Detail" section and i don't seem to be able to find it...any ideas? btw, THIS IS A SUBFORM IN REALITY! though i can't get it to work opening the sub form separately...i would have thought the on paint of the Detail but no joy so far.
here is the code i thought MIGHT do it:
If DateDiff("d", Me!DateSubmitted.Value, Date) > 14 Then
Me!Description.ForeColor = RGB(255, 0, 0)
Else
Me!Description.ForeColor = RGB(0, 0, 255)
End If
just not sure where to put it.
as i mentioned, screen grabs attached to be totally clear, thanks in advance!
this was easy; a simple onclick macro solved it. now i need to adjust the color of description based on the time it was entered - over 14 days i need the blue link to go red.
that means i need to check the data for each record in the "Detail" section and i don't seem to be able to find it...any ideas? btw, THIS IS A SUBFORM IN REALITY! though i can't get it to work opening the sub form separately...i would have thought the on paint of the Detail but no joy so far.
here is the code i thought MIGHT do it:
If DateDiff("d", Me!DateSubmitted.Value, Date) > 14 Then
Me!Description.ForeColor = RGB(255, 0, 0)
Else
Me!Description.ForeColor = RGB(0, 0, 255)
End If
just not sure where to put it.
as i mentioned, screen grabs attached to be totally clear, thanks in advance!