# 用SelectionFormula

Posted by SuBird on February 25, 1999 at 08:39:15:

In Reply to: Crystal Report posted by Fred Tsai on February 24, 1999 at 23:45:48:

: 请教一下
: 我如何让我的资料库界面输入月份即可以crystal report的格式输出该月份的报表
: 亦即每月的报表格式均一样，但其所抓取的月份不一样
: 还请多多帮忙解答一下

Re:
用SelectionFormula; 其语法类似SQL之Where子句，但有些许不同，例：
CrystalReport1.SelectionFormula = "{Table名称.月份} = '" & Text1.Text & "'"
Text1输入月份...Try it!

Follow Ups:

- Re: 用SelectionFormula Fred 10:08:25 2/26/99 (3)
  - Re: 用SelectionFormula SuBird 15:05:31 2/26/99 (2)
    - Re: 用SelectionFormula Fred Tsai 10:59:47 3/02/99 (1)
      - 原来如此! SuBird 11:27:00 3/02/99 (0)