Solved

Using MS Access 2003, change the color of a singe row in a continuous forms subform

Posted on 2010-08-28
2
680 Views
Last Modified: 2012-05-10
Experts,

I have a subform accessing a single table, the subform is set to continuous forms with an update button in each row. When the update button is clicked, I want to change the color of the detail ONLY for the row selected. Instead it's changing the color for all rows.

Can this be done.

Feel free to give anwers using VBA.
0
Comment
Question by:aijreal
2 Comments
 
LVL 38

Accepted Solution

by:
puppydogbuddy earned 250 total points
ID: 33553124
Try placing the following code in your update button:
If Me.CurrentRecord Then
   Me.BackColor = vbRed
End If
________________________________________

try this if the above doesn't work, but this will only highlight one control:
Open the subform in Design View, and select the first control.
Go to Format | Conditional Formatting.
Under Condition 1, select Field Has Focus.
Click the Fill/Back Color button, and select yellow.
Click OK.
0
 

Author Closing Comment

by:aijreal
ID: 36576906
Thankyou!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question