Setting
The DatasheetBackColor and DatasheetForeColor properties are a Long Integer value representing the background color and font color setting for a datasheet.
The following setting information applies to both Microsoft Access database and Access projects (.adp):
Remarks
Setting the DatasheetBackColor or DatasheetForeColor properties for a table or query won't affect these property settings for a form that uses the table or query as its source of data.
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 (.mdb) by using the CreateProperty method and append it to the DAO Properties collection.
DatasheetBackColor | DatasheetFontUnderline* |
DatasheetCellsEffect | DatasheetFontWeight* |
DatasheetFontHeight* | DatasheetForeColor* |
DatasheetFontItalic* | DatasheetGridlinesBehavior |
DatasheetFontName* | DatasheetGridlinesColor |
Note When you add or set any property listed with an asterisk, Microsoft Access automatically adds it to the Properties collection.