Form.DatasheetFontItalic Property
Access Developer Reference |
You can use the DatasheetFontItalic property to specify an italicized appearance for field names and data in Datasheet view. Read/write Boolean.
Syntax
expression.DatasheetFontItalic
expression A variable that represents a Form object.
Remarks
The DatasheetFontItalic property applies to all fields in Datasheet view and to form controls when the form is in Datasheet view.
This property is only available in Visual Basic within a Microsoft Access database.
The following table contains the properties that don't exist in the DAO Properties collection of until you set them by using the Formatting (Datasheet) toolbar or you can add them in an Access database by using the CreateProperty method and append it to the DAO Properties collection.
DatasheetFontItalic * |
* |
* | |
* | |
* | |
* |
Note |
---|
When you add or set any property listed with an asterisk, Microsoft Access automatically adds all the properties listed with an asterisk to the Properties collection of the database. |
Example
The following example displays the data and field names in Datasheet view of the Products form as italic and underlined.
Visual Basic for Applications |
---|
|
The next example displays the data and field names in Datasheet view of the Products table as italic and underlined.
To set the DatasheetFontItalic and DatasheetFontUnderline properties, the example uses the SetTableProperty procedure, which is in the database's standard module.
Visual Basic for Applications |
---|
|
See Also