简体   繁体   English

条件格式或使用VBA格式化

[英]conditional formatting or formatting with VBA

In MS Access, is there a reason to prefer conditional formatting over setting formatting options with VBA? 在MS Access中,有没有理由比使用VBA设置格式选项更喜欢条件格式? Is one more effecient or generally considered easier to read? 是一种更有效的方法还是通常被认为更易于阅读?

Conditional formatting works on continuous forms or subforms. 条件格式适用于连续表单或子表单。 VBA formatting doesn't work on continuous forms and subforms. VBA格式不适用于连续表单和子表单。 Both work on standard forms. 两者都以标准格式工作。

If you are familiar with Access or Excel but haven't used VBA, conditional formatting can be preferable because you don't have to learn nearly so much. 如果您熟悉Access或Excel但还没有使用VBA,那么条件格式化可能是更可取的选择,因为您不必学习太多。 I realize this answer is probably not applicable from the asker's point of view, but it may be important to someone with less knowledge generally. 我意识到从提问者的角度来看,此答案可能不适用,但对于一般知识较少的人来说可能很重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM