|
知道哪里错误
更正一下:
- Private Sub Command12_Click()
- strWhere = ""
- If Not IsNull(Me.签约时间开始) Then
- strWhere = strWhere & "DateDiff('d', Date(), 付款日期) <= " & Me.签约时间开始 & " and DateDiff('d', Date(), 付款日期)>=0 And "
- End If
- If Not IsNull(Me.txt日期) Then
- Select Case Me.Combo9
- Case "付款日期"
- strWhere = strWhere & "Format(付款日期, 'yyyy-mm') like '*" & Format(Me.txt日期, "yyyy-mm") & "*' And "
- Case Else
- strWhere = strWhere & Me.Combo9 & " like '*" & Me.txt日期 & "*' And "
- End Select
- End If
- If Len(strWhere) <> 0 Then
- strWhere = Left(strWhere, Len(strWhere) - 5)
- End If
- Debug.Print strWhere
- Me.b子窗体.Form.Filter = strWhere
- Me.b子窗体.Form.FilterOn = True
- End Sub
复制代码 |
|