This is from another posting...would this work and if so, could you help
me
modify code to my application...
I thought your question sounded too easy. So you want the Subject field
to
be bold whenever the value of Subject is different than the previous
Subject?
That is a bit trickier and requires some VB.
Add a Global Variable to any module (or create a new one) to keep the old
subject.
Global strPreviousSubject As String
Below that, add the function to check to see if the line should be bold:
Function fBoldField(Optional ByVal strSubject As String) As Boolean
fBoldField = False
If IsNull(strSubject) Then Exit Function
If strSubject <> strPreviousSubject Then fBoldField = True
strPreviousSubject = strSubject
End Function
Then, for the conditional formatting of your Subject box, choose
Expression
Is with
fBoldField([User])
as the expression.
Whenever the fBoldField Function returns a true value, the conditional
formatting will kick in.
Douglas J. Steele said:
I'm not sure there is a way to accomplish that on a form. (It's trivial,
of
course, to achieve it on a report.)
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
in other words, i only need to hide part of the row if the row is
identical
as the row above vs. not showing the entire row which I could do by
eliminating dups in the record source
:
I don't believe it's possible.
Why not eliminate the duplicates from the recordsource by using the
DISTINCT
keyword in the query?
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
I know you can't hide duplicate rows of a continuous form while
leaving
other
visible. However, I think I can use conditional formatting. If I
can,
what
sort of expresssion would I put into the condition to check to see
if
the
previous record's field is identical?