Query fonts etc
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Query fonts etc
I'm trying to remember the Access programming class I took in the 90's. so using A97 or A2k is there a way through programing/or hard coded into the query design to change font color criteria todays date versus a date in the tables? Memory losses are a constant nagging issue with me sometimes.
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
What do you mean by "to change font color criteria todays date versus a date in the tables"?
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
For example if the target date is greater than todays date make the output of the query green.
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
You cannot do that in a query.
On a form or report in Access 2000, you can apply conditional formatting to text boxes and combo boxes using Format > Conditional Formatting.
In Access 97, you'd have to use VBA code. This is relatively easy on a single form and on a report; it's much more difficult on a continuous form.
On a form or report in Access 2000, you can apply conditional formatting to text boxes and combo boxes using Format > Conditional Formatting.
In Access 97, you'd have to use VBA code. This is relatively easy on a single form and on a report; it's much more difficult on a continuous form.
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
This is all That I have to work with.
EDIT: Adding Field parameters
EDIT: Adding Field parameters
You do not have the required permissions to view the files attached to this post.
Last edited by bknight on 07 Nov 2016, 17:24, edited 1 time in total.
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
Only in a report?
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
In Access 2000, you can use conditional formatting for text boxes and combo boxes on a form and on a report.
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
Something like this, but doesn't work.
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
@Today() is not valid in Access. Use Date() instead (without @).
Best wishes,
Hans
Hans
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
Is there a shortcut/key stroke combination the "refreshes" a query? The only way I have been able to accomplish this is to go to design view and then back to datasheet view.
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
When you open a select query, there is a Refresh All button on the Home tab of the ribbon. There is no specific keyboard shortcut for this button, but you can use Alt+H, K, R, E
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
All four keys with Alt selected? I get a ping when I do something like that.
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
No, hold down Alt while pressing H, then release Alt (this will have selected the Home tab of the ribbon).
Then press K and R and E one after the other.
(This is the sequence that works in Access 2016; I don't have Access 2007 to test on)
Then press K and R and E one after the other.
(This is the sequence that works in Access 2016; I don't have Access 2007 to test on)
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1412
- Joined: 08 Jul 2016, 18:53
Re: Query fonts etc
Alt +H, results in KR icon over The refresh all in the ribbon.
After KR you get A or E choice.
Thanks
After KR you get A or E choice.
Thanks
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Query fonts etc
For others reading this post; this is the sequence in visuals... (Access 2013)
Holding down ALT, then pressing "H" results in this:
After releasing all the keys and then pressing "K" results in this:
Now pressing "R" results in this:
Lastly press "A" for Refresh All or "E" for Refresh.
This is the end of the presentation. You may all now advance to the back of the room and grab some refreshments and a muffin.
Holding down ALT, then pressing "H" results in this:
After releasing all the keys and then pressing "K" results in this:
Now pressing "R" results in this:
Lastly press "A" for Refresh All or "E" for Refresh.
This is the end of the presentation. You may all now advance to the back of the room and grab some refreshments and a muffin.
You do not have the required permissions to view the files attached to this post.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- 3StarLounger
- Posts: 235
- Joined: 08 Jun 2010, 20:03
- Location: Morgantown, PA
Re: Query fonts etc
When I want to re-run my queries, I press Shift+F9. Is that the same as a refresh?
Cordially,
Bob Sullivan
Elverson, PA
Bob Sullivan
Elverson, PA
-
- Administrator
- Posts: 78588
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Query fonts etc
Shift+F9 "requeries the underlying tables", i.e. it reruns the active query or refreshes the active form.
Best wishes,
Hans
Hans