Help with Microsoft Access

sean_churchill

New Member
Joined
Feb 20, 2003
Messages
11
Hi, I trying to do some kind of formula to work out the following thing: -

Highlight a particular piece of data when it has been six months before it was last checked? so when it is over six months the data is highlighted (which is a name of a company)

Any suggest would be great.

Many Thanks

Sean.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Where are you trying to do this? In a form, table, query, report? It shouldn't be too hard to do in a report or form, but I'm not sure if it's possible to highlight line items in tables or queries
 
Upvote 0
I assume that you're viewing this data with several text boxes, one of which is for company name and one of which is the date? If this is true then this code should work:

Private Sub Form_Current()
Me.yourcompanynametextbox.FontBold = False
If me.yourdatetextbox< "##/##/####" Then
Me.yourcompanynametextbox.FontBold = True
End If
End Sub

This will get you up and running. Of course, the way this is set up, your cutoff date would always be the same. You'd have to pass in an argument in order to have this be dynamic and change as you're moving forward.
 
Upvote 0

Forum statistics

Threads
1,221,493
Messages
6,160,139
Members
451,624
Latest member
TheWes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top