M
Majic
Hey Guys,
Is it possible to change font color of query data? If so, please
help!
Thank you
Majic
Is it possible to change font color of query data? If so, please
help!
Thank you
Majic
There are default values that you can set under Tools/Options/Datasheet.
These will apply to ALL datasheets in the application and might even
transcend applications if this is one of those "all database" settings. You
can modify the settings in VBA when you use a form but not when you use a
query or open a datasheet of a table directly. Only forms/reports have
events where you can "hang" code which is why you cannot affect these
attributes on the fly for queries and tables.
I frequently set the background color of datasheet forms in the form's open
event. This makes them blend better with their parent forms since I never
use datasheet forms except as subforms on other forms.
Private Sub Form_Open(Cancel As Integer)
Me.DatasheetBackColor = 15000779
End Sub
- Show quoted text -