datasheet view

A

AgentX

s it possible, In a datasheet view subform, to change the backgound
color based on the value in a particular field? For example if the
field is Yes/No, have the background color red for No and Green for
Yes?
Any help is greatly appreciated
 
G

Guest

yeah, quite simple - assume field is called yesorno

if[yesorno] = "yes" then
[yesorno].backcolor = vbred
end if

if[yesorno] = "no" then
[yesorno].backcolor = vbgreen
end if

if you want the form to change color, just replace the field name with the
form name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top