Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Access Help 1

Status
Not open for further replies.

coolskater49

Technical User
Joined
Nov 20, 2002
Messages
20
Location
GB
i have a text box containing a date, and would like the text to change colour if the date is within the next 30 days, is there anyway i could do this??

thanks a lot.
 
Hi

In the oncurrent event of the form

If Abs(DateDiff("d",MyDate,Date())) > 30 Then
MyDAte.ForeColor = colorvalueyouwant
Else
MyDate.ForeColor = othercoloryouwant
End if

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
thanks a lot, that was just what i needed.
cheers,
paul.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top