A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Highlight the Current



 
 
Thread Tools Display Modes
  #1  
Old February 17th, 2009, 03:46 PM posted to microsoft.public.access.gettingstarted
Bre-x
external usenet poster
 
Posts: 103
Default Highlight the Current

Hi,

Is there a a way to highlight the current on a Datasheet form?

I use the "On Current" Event to open another form, I would like to
"highlight" some how the current record.

Thank you all,

Bre-x


  #2  
Old February 17th, 2009, 04:58 PM posted to microsoft.public.access.gettingstarted
CrazyAccessProgrammer
external usenet poster
 
Posts: 58
Default Highlight the Current

Are you talking about highligting the control that currently has the focus?
If you are I've always wanted to know if there was an easy way to do this.

Only way I know of to do this is to put some code in EACH control's On Got
Focus and On Lost Focus events to change something about the control (change
its backcolor/forecolor/borderwidth etc).

But this quickly gets very laborous if you try to keep a consistent
look/feel on each form, especially if you are working on a large database and
even if you make public procedures to put the 'highlight' into effect, you
still have to stick a call to those procedures in every single control's On
Got Focus/On Lost Focus events.

On large databases, it isn't worth the effort.

"Bre-x" wrote:

Hi,

Is there a a way to highlight the current on a Datasheet form?

I use the "On Current" Event to open another form, I would like to
"highlight" some how the current record.

Thank you all,

Bre-x



  #3  
Old February 17th, 2009, 05:47 PM posted to microsoft.public.access.gettingstarted
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Highlight the Current

As Crazy has said, there is no easy way to do this. Lebans has a hack for
highlighting every other row, which you might be able to modify for your
needs. But to be honest, it would entail more work than I'd ever want to do,
for such a payoff.

As to Crazy's question about highlighting the control with focus, that's easy!


In Design View, select the control in question. Now

Goto Format - Conditional Formatting

In the Condition dropdown box select "Field has focus"

Now change to back color to whatever you want.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/200902/1

  #4  
Old February 17th, 2009, 06:49 PM posted to microsoft.public.access.gettingstarted
Bre-x
external usenet poster
 
Posts: 103
Default Highlight the Current

Thank you all for your comments

Bre-x

"Bre-x" wrote in message
...
Hi,

Is there a a way to highlight the current on a Datasheet form?

I use the "On Current" Event to open another form, I would like to
"highlight" some how the current record.

Thank you all,

Bre-x



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.