I'm using the following code, in the On Load to set the font on all controls on the form:
Code:
Public Function TextBoxProperties(frm As Form)
Dim ctl As Control
For Each ctl In frm.Controls
If ctl.ControlType = acTextBox Or ctl.ControlType = acLabel Or ctl.ControlType = acCommandButton Or ctl.ControlType = acComboBox Then
ctl.FontName = "Ebrima"
End If
Next ctl
On Error GoTo 0
Exit Function
End Function
[CODE]
Any time I want to change the font I need to open the module and change the value for ctl.FontName.
Is the a way I can populate a table with font names and use the table to set these fonts?
I can create a table with the font names but have no idea how to actually set the font to my forms.
I've tried using the Them Fonts in Access but have some issues, like some controls not displaying the proper font. So, I've abandoned Theme Fonts.
Any help will be appreciated,
James