Function Add(Type As AcFormatConditionType, [Operator As AcFormatConditionOperator = acBetween], [Expression1], [Expression2]) As FormatCondition
Public Sub TestAdd()
Dim FCs As Access.FormatConditions
Set FCs = Application.Forms(0).Text0.FormatConditions
FCs.Delete
FCs.Add acFieldValue, acEqual, "=1"
FCs.Add acFieldValue, acEqual, "=1"
FCs.Add acFieldValue, acEqual, "=1"
FCs.Add acFieldValue, acEqual, "=1"
End Sub
运行时错误'7966'
您指定的格式条件号大于格式条件数
Application.SaveAsText acForm ,"窗体1","C:\1.frm"
ConditionalFormat = Begin
0x0100000066000000010000000000000002000000000000000200000001010000 ,
0xff000000c0c0c000000000000000000000000000000000000000000000000000 ,
0x0000000000000000000000000000000000000000000000000000000000000000 ,
0x310000000000
End
04Bytes) FC头
44Bytes) nSize
84Bytes) fcCount
0:(4Bytes) AcFormatConditionType
4:(4Bytes) AcFormatConditionOperator
8:(4Bytes) pOffsetExpr1
12:(4Bytes) pOffsetExpr2
16:(1Byte) bEnabled
17:(1Byte) bBold
18:(1Byte) bItalic
19:(1Byte) bUnderline
20:(4Bytes) rgbsForeColor
24:(4Bytes) rgbsBackColor
Strings(n) Unicode
以下是引用tmtony在2005-8-29 2:05:00的发言:
很不错 ,我以前也做过类似的尝试, 从这个文件可看到微软不少的心思.
http://www.office-cn.net/Article/Class5/Class21/200312/262.html
可再试试像 Charset解决繁简问题 嵌入的图像格式导出嵌入的文件等,这样来实现更多的一些功能
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |