I have a form that is set to 'Continuous Forms'. I need to have the entire
"Record" highlighted. The reason is that I also have an subform attach which
contains centain information that I transfer to related fields in the Parent
form through a button. How do I have the entire record highlighted.
Generally speaking if you have a code in the first field of the record such
as Me.Field.BackColor = VbRead the entire field will change. I want to have
the record or line highlighted. This will be easier to know that the
information will be transferred to the proper record and field.
How can this be accomplished?
Sandrao
fredg - 30 Jan 2007 18:01 GMT
> I have a form that is set to 'Continuous Forms'. I need to have the entire
> "Record" highlighted. The reason is that I also have an subform attach which
[quoted text clipped - 6 lines]
> How can this be accomplished?
> Sandrao
Access 2002 or newer?
See
http://www.lebans.com
specifically:
http://www.lebans.com/conditionalformatting.htm
You can down load a sample database that includes various uses for
shaded lines, including continuous form alternating lines and
highlighting the selected line.

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Marshall Barton - 30 Jan 2007 18:12 GMT
>I have a form that is set to 'Continuous Forms'. I need to have the entire
>"Record" highlighted. The reason is that I also have an subform attach which
[quoted text clipped - 4 lines]
>the record or line highlighted. This will be easier to know that the
>information will be transferred to the proper record and field.
Add a hidden text box (named txtKey) to the form's header
section. Then add a line of code to the form's Current
event procedure:
Me.txtKey = Me.pkfield
With that in place, you can use Conditional Formatting on
any/all of the text boxes in the detail section. Set the
Expression Is option to [pkfield] = [txtKey]
Probably a better way to highlight the entire detail is to
add a text box to the detail section. Size it the same as
the detail section and use Send to Back to place it behind
all the other controls. Then use CF for just this one text
box. You probalbly will also want to set the other text
box's BackStyle to Transparent.

Signature
Marsh
MVP [MS Access]
sandrao - 31 Jan 2007 03:32 GMT
Thanks your suggestion works well. Just one little silly question.
How do you Send to Back ?
> >I have a form that is set to 'Continuous Forms'. I need to have the entire
> >"Record" highlighted. The reason is that I also have an subform attach which
[quoted text clipped - 20 lines]
> box. You probalbly will also want to set the other text
> box's BackStyle to Transparent.
Marshall Barton - 31 Jan 2007 18:06 GMT
Select the text box, then use the Format - Send to Back menu
item.

Signature
Marsh
MVP [MS Access]
>Thanks your suggestion works well. Just one little silly question.
>
[quoted text clipped - 24 lines]
>> box. You probalbly will also want to set the other text
>> box's BackStyle to Transparent.
sandrao - 31 Jan 2007 23:50 GMT
Thanks all works fine
> Select the text box, then use the Format - Send to Back menu
> item.
[quoted text clipped - 27 lines]
> >> box. You probalbly will also want to set the other text
> >> box's BackStyle to Transparent.