Before you give up, check out Stephen Lebans' site at
www.lebans.com
You said that each customer has its color assigned to it, so
the color value must be in a table that can be joined to the
form's record source table/query. I'm pretty sure you can
then use his FormatByCriteria technique to at least get
close to what you want.
--
Marsh
MVP [MS Access]
John Crighton wrote:
Allen,
Thanks - until now I've not had a definite 'No - you can't' - which is
actually quite helpful because I can stop looking and concentrate on an
alternative!
I would have liked the form to be fairly interactive (e.g. click on a
booking to see details, etc), so it really does need to be a form.
It looks as if I'll have to ditch the colour coding aspect, but possibly
keep it for a report they can print out and stick on the wall next to the
computer screen.
I'll be cursing access for a couple of weeks.
Thanks again!
John C.
John, I think you are stuck if you must do this in a form.
In a report, you could use the Format event of the Detail section.
Should be dead easy if the color number (RGB value) is available in the
report's RecordSource.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
message Ken,
I'm probably using conditional formatting in a way that I shouldn't be.
I
have another post on the topic - essentially I want to colour the
sections
depending on the customer being shown - to give a graphical
representation
of a timetable. Each customer has their own colour (which is picked
using
the colour pick API), so there are likely to be more than 3 colours.
I'd love to be able to do this, and this limitation is all that's
holding
me
back. If you can think of another way to do it, I'm all ears!
John C.
This is true, but usually I use these changes in background color to
highlight issues for the record that is current. My users haven't had
difficulties with this setup. But not all will like using it.
--
Ken Snell
<MS ACCESS MVP>
Hi,
I'm not the original author, but I'm in a similar
situation.
The problem with your suggestion is that in a
subform/continuous forms situation, you cannot set any
control on the form without affecting all of the other
records displayed, so, for example if Me.ControlName = 1
for record 1, I can change the colour of something but
this will also apply to all of the other records
displayed.
Conditional formatting is the partial solution, but as
mentioned it only supports a limited number of
permutations (3).
If anyone has any other suggestions I'd be very
interested as I really think in this case there aren't
any!