?
Solved

Change the color font on an access report

Posted on 2011-09-19
13
Medium Priority
?
331 Views
Last Modified: 2012-05-12
when my access report is viewed I would like it to change the fore color to a different color for the newest change that happened.  So in a column if new data gets entered the fore color changes to red and the previous data gets changed from red back to black.  So the only thing showing red is the newest piece of data
0
Comment
Question by:Hiken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3
  • +2
13 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 36560222
How do you identify the newest data?
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36560228
you can use Conditional Formatting using an expression comparing other records to the unique value of the field that identify the newest change that happen..
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36560240
you can use Conditional Formatting using an expression comparing other records to the unique value of the field (or combinations of fields)  that identify the newest change that happen..
0
Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

 
LVL 30

Expert Comment

by:Randy Downs
ID: 36560306
Here's an example where they changed the highlighted colors using Selection.Find.Highlight = True. Maybe you could apply something similar to your newest updates.

http://stackoverflow.com/questions/229865/vba-how-do-i-change-highlighted-text-to-a-different-color-in-ms-word

Sub ChangeColor
Options.DefaultHighlightColorIndex = wdBrightGreen      

Selection.Find.ClearFormatting    
Selection.Find.Highlight = True    
Selection.Find.Replacement.ClearFormatting    
Selection.Find.Replacement.Highlight = True    
Selection.Find.Execute Replace:=wdReplaceAll      
Selection.Find.ClearFormatting    
Selection.Find.Font.Color = wdColorBrightGreen    

Selection.Find.Replacement.ClearFormatting    
Selection.Find.Replacement.Font.Color = wdColorRed    
With Selection.Find        
 .Text = ""         
 .Replacement.Text = ""         
 .Forward = True        
 .Wrap = wdFindContinue    
End With    
Selection.Find.Execute Replace:=wdReplaceAll

End Sub
0
 

Author Comment

by:Hiken
ID: 36560310
Multiple people access the database.  They basically type a number in a field and hit the enter key.  this enters a date and time on the report. So the newest data is the last date/time that the computer put in the field
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36560337
...and what about the "persistence" of this "newest" status?

At what point does a record move from being "newest" to say "existing/old"
Weekly? Daily?, per form Open/close?, Per database open/close, Per user?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36560405
<So in a column if new data gets entered the fore color changes to red and the previous data gets changed from red back to black.>
...What about changes to "existing" values?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36560417
Number-1,

I think your code is only applicable for MS Word...
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36560438
< this enters a date and time on the report. So the newest data is the last date/time that the computer put in the field>

you can get this information by using Dmax() function
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36560441
<They basically type a number in a field and hit the enter key.  this enters a date and time on the report.>

So is this "Date" is per field, or per record?

Perhaps it would be simple if you just posted a sample of this database, to avoid confusion...

Sample database notes:

1. Back up your database(s).
2. Combine the front and back ends into one database file.
3. Remove any startup options, unless they are relevant to the issue.
4. Remove any records unless they are relevant to the issue.
5. Delete any objects that do not relate directly to the issue.
6. Remove any references to any "linked" files (files outside of the database, Images, OLE Files, ...etc)
7. Remove any references to any third party Active-x Controls (unless they are relevant to the issue)
8. Remove, obfuscate, encrypt, or otherwise disguise, any sensitive data.
9. Compile the code. (From the database window, click: Debug-->Compile)
10. Run the compact/Repair utility.
11. Remove any Passwords and/or security.
12. Post explicit steps to replicate the issue.
13. Test the database before posting.

In other words, ...post a database that we can easily open and immediately see/troubleshoot the issue, and if applicable, also include a Graphical representation of the Exact results you are expecting.


JeffCoachman
0
 

Author Comment

by:Hiken
ID: 36561485
I can't post the database, but I'll try and give an example of how the database is working


charles is looking at a receiving report that has and ID# for everything he needs to receive.  Charles receives item1 by matching the ID# on the item to the ID# on the report.  He types the id# into the database.  The database looks up the ID# and put a date in this format  20060918-13:20 in a field called CargoReceived.  This automatically prints a report to a different office showing the date and time item1 was received.  When the report prints I want that data/time in the CargoReceived field to be red.  Charles receives Item2  it should change item1 back to black and item2 now becomes red.
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 36561528
0
 

Author Comment

by:Hiken
ID: 36561654
Thanks Capricorn1,

I should've check this out from your earlier post  it got me what I needed

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

770 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