

The references you set aren’t recognized by the older versions and your code fails. You forgot to check which version of Access the client was using or, worse, you checked but they neglected to tell you that some users had different versions. You developed your database in a particular version of Access and cleverly had it interact with another application such as Excel or Outlook. That’s just Access teasing you and trying to throw you off the scent. It turns out that the problem isn’t the Date function after all. Even more confusing is that it doesn’t necessarily happen on every machine. Everything works fine so you roll it out with your client or colleagues and suddenly find that the Date function throws up an error. You have built your database with liberal use of the Date function in calculated fields on forms, in SQL in queries and in VBA code. In those days the Internet was new with little help available so if you had a problem you pretty much had to fix it yourself, not always an easy task especially when Access presents you with some very misleading clues. “Why Doesn’t the Date Function Work in My Access Database?” When I first came across this problem, many years ago as a novice Access programmer, I was really stumped. Here are some recent answers to a variety of questions: Fixing the Access Date Function The selected font and color will be applied as the font and fore color of the text of the rich text box.Welcome to FontStuff – your source for Office tips and tricks. The Font dialog appears, select a font and a color and click the OK button. When the application is compiled and run using Start button available at the Microsoft Visual Studio tool bar, it will show the following window −Įnter some text and Click on the Change Font button.

RichTextBox1.ForeColor = FontDialog1.Color Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Set the ShowColor property of the FontDialog control to True.ĭouble-click the Change Color button and modify the code of the Click event − Set the Text property of the button control to 'Change Font'. Take the following steps −ĭrag and drop a RichTextBox control, a Button control and a FontDialog control on the form. In this example, let's change the font and color of the text from a rich text control using the Font dialog box. Occurs when the Apply button on the font dialog box is clicked. The following are some of the commonly used events of the FontDialog control − Sr.No. Runs a common dialog box with a default owner. When overridden in a derived class, specifies a common dialog box.

Resets all options to their default values. The following are some of the commonly used methods of the FontDialog control − Sr.No. Gets or sets a value indicating whether the dialog box displays a Help button. Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options. Gets or sets a value indicating whether the dialog box displays the color choice. Gets or sets a value indicating whether the dialog box contains an Apply button. Gets or sets a value indicating whether the dialog box allows selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set. Gets or sets the minimum point size a user can select. Gets or sets the maximum point size a user can select. Gets or sets a value indicating whether the dialog box specifies an error condition if the user attempts to select a font or style that does not exist. Gets or sets a value indicating whether the dialog box allows only the selection of fixed-pitch fonts. Gets or sets a value indicating whether the dialog box displays both vertical and horizontal fonts, or only horizontal fonts. Gets or sets a value indicating whether the dialog box allows vector font selections. Gets or sets a value indicating whether the dialog box allows graphics device interface (GDI) font simulations. The following are some of the commonly used properties of the FontDialog control − Sr.No. You should set the ShowColor property of the FontDialog control to be True. It returns the Font and Color objects.īy default, the Color ComboBox is not shown on the Font dialog box. It prompts the user to choose a font from among those installed on the local computer and lets the user select the font, font size, and color.
