2003中,如果是表格背景色,直接用Me.DatasheetBackColor=16777125就行了
如果是表格之外的背景,则需要用API:
Private Declare Function SetSysColors Lib "user32" (ByVal nChanges As Long, lpSysColor As Long, lpColorValues As Long) As Long
然后调用:SetSysColor SetSysColors 1, 12, 16777125 (第3个参数即为数据表窗体表格之外的背景色)