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

Conditional Formatting on Continuous Forms

Status
Not open for further replies.

vlingen

Programmer
Aug 4, 2006
31
US
Looking for a way to set a numeric text field to either Amount.format = "Currency" or Amount.format = "General Number"

The field is on a Continuous form so I need the format to stay with the record based on my expression.

I'd like to use the Format-Conditional Formatting wizard, but that only allows for text style and color settings.

Then I tried this on the Change event of a drop down box. The drop down box is what determine the criteria, but this code below doesn't work.

Dim objFrc As FormatCondition
Set objFrc = Me![Amount].FormatConditions.Add(acExpression, Me![txtView] = "A")
Set objFrc = Me![Amount].FormatConditions.Add(acExpression, Me![txtView] = "H")

With Me![Amount].FormatConditions(0)
.Format = "Currency"
End With

With Me![Amount].FormatConditions(1)
.Format = "General Number"
End With


Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top