Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Font on Form/Report

Status
Not open for further replies.

tkelnhofer2215

Technical User
Mar 12, 2006
1
US
Is there a way to code a field to change its font based on a another field.

I have a
field and I want this field's font to change when I select a font from the [font] combo box on the same form (the font is saved in the same table).

I would also like my report to print with
formatted with the correct font.

Any suggestions would be appreciated
 
Perhaps:
Code:
Private Sub cboFont_AfterUpdate()
  Me.txtText.FontName = Me.cboFont '"Times New Roman"
  Me.txtText.FontSize = 14
End Sub
 
It worked great except I am using a continuous form....the code changes all of "quote" fields when I change the "font" combo...any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top