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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a continuous form with feild 1

Status
Not open for further replies.

Arob

Technical User
Jul 25, 2001
55
0
0
US
I have a continuous form with feild [date needed]. I want to change the backcolor of this field if the system date is greater than the date needed feild. Below is the code I have placed on the Form_current event procedure.

Private Sub Form_Current()
If [DateNeeded] < VBA.Date Then
Me![DateNeeded].BackColor = RGB(0, 255, 0)
Else
Me![DateNeeded].BackColor = RGB(255, 255, 255)
End If
End Sub

However because it is a continuos form, all the date needed fields get changed to green. If I change to a single form and use the navigation buttons the code works. Is there a way to get it to work using a continuous form?
 
If you are using A2K or above check out conditional formatting. Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Unfortunately I am using A97
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top