[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1164
  • Last Modified:

MS Access: How to highlight rows in continuous forms without the form content “jumping” ?

Helo,

I am using Access 2013, and have a continuous form on which I want to highlight the selected row. I have it working using the solution described here: http://answers.microsoft.com/en-us/office/forum/office_2007-access/highlight-row-in-continuous-form/a862821f-ebee-4ebc-93d9-e068debcab84.
To summarize:
1.      the form controls have been made transparent and placed on top of a long textbox.
2.      An invisible text box (named txtCurrent) is placed in the form header. This has its value set to the primary key field in the form’s Current event: Me.txtCurrent = Me.[primary key field]
3.      The long textbox has been conditionally formatted using the Expression Is option: [primary key field] = [txtCurrent]
…and its background set to the desired highlight color.

However, I find that every time a new row is selected, the form content “jumps” quite noticeably. I am not sure why this is, but does anyone know of an alternative way to highlight rows without the form content jumping every time ? Sorry to be finicky ! I have searched quite a bit for a way to solve this, but couldn’t find anything. Thank you advance for any help.
0
Paul McCabe
Asked:
Paul McCabe
2 Solutions
 
Rey Obrero (Capricorn1)Commented:
did you try setting the Detail's Back color and Alternate Back color property>
0
 
Paul McCabeAuthor Commented:
Thank you for your response. Do you mean having the rows display "permanently" in alternate colors, as opposed to a row being highlighted when selected ?
0
 
EirmanCommented:
I haven't read right through the method you were using and the one described here
http://www.upsizing.co.uk/Art53_Highlight.aspx
but they both look very similar.

The latter one mentions a flicker in Access 2003 that was fixed by an SP update.
Perhaps Access 2013 needs a similar fix.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Paul McCabeAuthor Commented:
I am using Windows 7, with the latest Servce Pack (SP1) installed.
0
 
Jeffrey CoachmanCommented:
Here is an Oldie but a Goodie:
http://www.lebans.com/conditionalformatting.htm

FWIW, I stopped doing things like this a while ago.
All the coding and design modifications were not really worth it.

...Besides, ..none of these mods really worked as smoothly as I expected.
In the end, I removed this and no one cared, ...

JeffCoachman
0
 
Helen FeddemaCommented:
Here is an Access Archon article I did a while back that describes how to highlight the selected row in a CF form:

http://www.helenfeddema.com/Files/accarch173.zip

Here is a screen shot of the form:

Current row back colorIt doesn't cause jumping, at least on my computer.
0
 
Paul McCabeAuthor Commented:
Thank you all very much for your comments and suggestions. I will revert as soon as I have managed to test these out.
0
 
Paul McCabeAuthor Commented:
I resolved the jumping screen issue by adding a check box to the record, and making the long text box highlight dependant on the check box value being True. The checkbox needs to be clicked/unclicked to highlight/un-highlight records, but this is fine for the intended use, and has the advantage that multiple records can be highlighted simultaneously. Many thanks for pointing me towards a solution !

FYI: Interestingly, no method that requires associating the primary key with conditional formatting via a third control resolves the issue. The examples you sent seem to have been created in earlier versions of Access, so maybe the jumping screen phenomenon that I see using these methods is specific to Access 2013.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now