# Selection.Formula再问

Posted by indian on March 02, 1999 at 11:18:20:

求救......帮忙看一下下面的程式....想不出来错在那理???
Dim varsql As String
Dim varsql2 As String
varyear = Combo1.Text
varmonth = Combo2.Text
varsql = CStr(varyear) & "/" & CStr(varmonth) & "/1"
varsql2 = CStr(varyear) & "/" & CStr(varmonth) + 1 & "/1"
CrystalReport1.SelectionFormula = "{Activity Hours.Day} between " & varsql & " And " & varsql2 & " "
CrystalReport1.ReportFileName = App.Path + "\month.rpt"
CrystalReport1.Action = 1

Follow Ups:

- Re: Selection.Formula再问 SuBird 11:41:06 3/02/99 (2)
  - Re: Selection.Formula再问 indian 15:56:49 3/03/99 (1)
    - Re: Selection.Formula再问 SuBird 08:25:19 3/04/99 (0)