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!

Multicoloured continuous forms

Status
Not open for further replies.

Samulayo

Programmer
Aug 13, 2002
46
0
0
GB
Right to clear up that confusing title:

I use the bellow code in access 2000, but now require to use it in 97.

Private Sub Form_Current()
Dim ctl As Control
On Error Resume Next
For Each ctl In Forms!<Formname>.Form.Controls
With ctl
If .Tag = &quot;ConditionalFormat&quot; Then
With Forms!<Formname>.Form.Controls(ctl.Name).FormatConditions _
.Delete
End With

With Forms!<formname>.Form.Controls(ctl.Name).FormatConditions _
.Add(acExpression, , &quot;<field> = &quot; & True)
.BackColor = 14024661
.ForeColor = 0
End With
End If
End With
Next ctl
End Sub


*Thanks to Bill Power for this code btw*

If i run it in access 97 i get an error on acExpression
access cannot find the variable, so i assume a package needs to been included. Any idea what this package is? Where I can get it? and if I actually can get it for Access97?

Regards

Samulayo
 
Damn it, I suspected as much. Thanks for the heads up before I told anyone about it.

Regards

Samulayo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top