Link to home
Start Free TrialLog in
Avatar of Fordraiders
FordraidersFlag for United States of America

asked on

looping through subform for specific background color red and give me some type of alert

access 2010
form
subform

I have a form called "main"
subform called "dbo_t_redbook_pricing_escalation_detail_subform"

I need to loop through 2 columns
on the subform to see if my conditional formatting has changed the fore color/background color to red ?

User generated image
if it does i need a msgbox or boolean alert.
I will  be calling the alert from a Command button on my main form.



Thanks
fordraiders
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
since it looks like your subform is based on a query, why not add a computed column (or multiple) to the query that evaluates to True or False, with respect to the critieria you use for each of the rows/columns which sets the color to red.

Then you could run another query against that query to determine how many records meet your Red criteria for each of those columns.
Avatar of Fordraiders

ASKER

John, Very nice ! Thank You.